P27250 [AtCoder] Three Integers
普及
题目描述

Problem Description

You are given three integers $ A, B, C $. Each of $ A, B, C $ is either $ 1 $ or $ 2 $. Determine which of $ 1 $ or $ 2 $ appears more frequently among $ A, B, C $.

Input Format

The input is given from the standard input in the following format:

$ A $ $ B $ $ C $

Output Format

Output the number that appears more frequently among $ 1 $ and $ 2 $.

Sample Input and Output

Sample Input #1

1 2 1

Sample Output #1

1

Sample Input #2

2 2 2

Sample Output #2

2

Notes/Hints

Constraints

  • Each of $ A, B, C $ is either $ 1 $ or $ 2 $.

Sample Explanation 1

There are $ 2 $ ones and $ 1 $ two, so output the more frequent number, which is $ 1 $.

Sample Explanation 2

All numbers are $ 2 $, so output $ 2 $.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1 2 1
样例输出
1