#C5442. Expected Winner Tournament
Expected Winner Tournament
Expected Winner Tournament
You are given the number of players in a tournament and their corresponding skill levels. Your task is to determine the expected winner of the tournament. The expected winner is defined as the player with the highest skill level.
Formally, if you are given an array of integers \( A = [A_1, A_2, \dots, A_n] \), you need to compute:
\( \max\{A_1, A_2, \dots, A_n\} \)
Consider the following example:
Input: 5 4 2 5 3 1 Output: 5
Make sure to read the input from stdin and print the output to stdout.
inputFormat
The input is read from standard input and consists of two lines:
- The first line contains a single integer \( n \), the number of players.
- The second line contains \( n \) space-separated integers representing the skill levels of the players.
outputFormat
Print a single integer which is the skill level of the expected winner (i.e., the maximum skill level among all players) to standard output.
## sample1
1
1