#abc134c. [abc134_c]Exception Handling
[abc134_c]Exception Handling
Problem Statement
You are given a sequence of length : . For each integer between and (inclusive), answer the following question:
- Find the maximum value among the elements other than in the sequence.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print lines. The -th line () should contain the maximum value among the elements other than in the sequence.
Sample Input 1
3
1
4
3
Sample Output 1
4
3
4
- The maximum value among the two elements other than , that is, and , is .
- The maximum value among the two elements other than , that is, and , is .
- The maximum value among the two elements other than , that is, and , is .
Sample Input 2
2
5
5
Sample Output 2
5
5