1420 - 序列的最大值

给出一个长度为N的整数序列,求出其中最大的是几

Input

第一行一个整数N,表示接下来有几个数字
第二行N个整数X

Output

一行一个整数表示最大值

Examples

Input

5
1 3 2 5 4

Output

5
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题