Given $n$ followed by $n$ integers (one per line), print the maximum.
Input
First line $n$ ($1 \le n \le 1000$); then $n$ integers, each in $[0, 10000]$, one per line.
Output
Print the maximum value.
Example 1
Input
5 3 9 1 7 4
Output
9
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.