Step 4 of 12 · Arrays
Largest value
Problem
Read a list of whole numbers and return the largest value. The first input line tells you how many values follow.
Input
The first line contains n. The second line contains n space-separated integers.
Output
The largest integer in the list.
Examples
Input
5 7 2 19 4 11
Output
19
19 is greater than every other value in the list.