Problem list
Log in
#joi00113 · JOI 2021 Preliminary 1A

2 番目に大きい整数 (The Second Largest Integer)

Bronze IV 2.0 s 1024 MB

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
Source
JOI 2021 Preliminary 1A
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code