3 つの整数 A, B, C が与えられる.これらのうち 2 番目に大きい数を出力せよ.
Input
入力は以下の形式で標準入力から与えられる.
A B C
Output
A, B, C のうち, 2 番目に大きい数を出力せよ.
Constraints
1 ≦ A ≦ 100 .
1 ≦ B ≦ 100 .
1 ≦ C ≦ 100 .
Example 1
Input
7 5 3
Output
5
Example 2
Input
1 3 3
Output
3
Example 3
Input
100 100 100
Output
100
Example 4
Input
29 83 1
Output
29
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.