1100: 求序列的最大值

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

Description

给定一个长度为 $n$ 的序列,请输出该序列中的最大值。

Input

第一行,包含一个整数 $n$,表示序列的长度。

第二行,共 $n$ 个整数(范围均为 $-1000\sim 1000$),每个整数中间以空格隔开,表示序列。

Output

一个整数,表示序列中的最大值。

Sample Input Copy

5
-50 1 223 3 -100

Sample Output Copy

223

HINT

数据范围:

$0 \lt n \le 100$

Source/Category