BeginnerLists2000 ms256 MB
List Maximum
Find the largest integer in a list.
Statement
Find the largest integer in a list.
Input
First line: `n`. Second line: `n` integers.
Output
The largest integer.
Constraints
- `1 <= n <= 1000`
Examples
Example 1
Input
5
3 9 4 9 1Output
9The largest value is 9.
Sample runs use visible examples. Full submissions are checked securely on the server, and private test cases are not shown in the browser.