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 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 11 and 10001000.

Output

Print the maximum.

Sample

InputOutput
3
4 2 7
7

Discussion

Statistics


91% Solution Ratio

raselrokyEarliest, Nov '18

raselrokyFastest, 0.0s

Jinia_YesminLightest, 0 B

saitotaShortest, 25B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.