Among all the marks submitted, Tanvir needs to quickly find the single highest score awarded. Read N integers and print the maximum value.
Input
First line N, second line N integers.
Output
The maximum value.
Constraints
1 ≤ N ≤ 10^5
Sample Input
5 3 7 2 9 4
Sample Output
9
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.