3008: 循环控制语句-找出第一个大于100的数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:4

Description

输入n个整数,找出第一个大于100的数,输出该数。如果没有这样的数,输出-1。

Input

第一行输入整数n(1≤n≤1000),第二行输入n个整数,每个整数不超过10000。

Output

输出第一个大于100的数,如果没有,输出-1。

Sample Input Copy

4
20 150 30 200

Sample Output Copy

150