Three Integers
InterviewTime limit2sMemory limit512 MB
Given three integers, each either 1 or 2, print whichever value appears more often.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
You are given three integers A, B, C. Each of A, B, C is either 1 or 2. Determine which of 1 and 2 appears more often.
Input
Input is given from standard input in the following format.
A B C
Output
Print whichever of 1 and 2 appears more often.
Constraints
- Each of
A, B, Cis either1or2.