Skip to content

3 つの整数 (Three Integers)

Unrated
日本語

Language

Contribute a translation
Time limit
2000 ms
Memory limit
1024 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

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

Constraints

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

Input

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

\(A\) \(B\) \(C\)

Output

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

Examples

Sample input 1
1 2 1
Sample output 1
1

\(1\) が \(2\) 個で \(2\) が \(1\) 個なので,個数の多い \(1\) を出力する.

Sample input 2
2 2 2
Sample output 2
2

すべて \(2\) なので,\(2\) を出力する.

Notes

Tags

No tags yet

Source