Maximum

Limits 1s, 512 MB

Given NN numbers, find the one that is of the highest value and print it.

Input

The first line of the input will contain NN (0<N<1000 < N < 100).

The following line will contain NN integers, each between 1 and 1000.

Output

Print the maximum.

Sample

InputOutput
3
4 2 7
7