Problem list
Log in
#joi00132 · JOI 2020 Preliminary 1A

3 つの整数 (Three Integers)

Bronze IV 2.0 s 1024 MB

3 つの整数 A, B, C が与えられる. A, B, C はそれぞれ 1 または 2 である. 1 と 2 のうち,どちらが多くあるか.

Input

入力は以下の形式で標準入力から与えられる.

A B C

Output

1 と 2 のうち,個数が多い方を出力せよ.

Constraints

A, B, C はそれぞれ 1 または 2 である.

Example 1

Input
1 2 1
Output
1

Example 2

Input
2 2 2
Output
2
Source
JOI 2020 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