Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Maximum

Limits 1s, 512 MB

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

Input

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

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

Output

Print the maximum.

Samples

InputOutput
3
4 2 7
7

Discussion