Three Integers

Interview

Time limit2sMemory limit512 MB

Summary
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, C is either 1 or 2.

Examples2

  1. Example 1

    Input
    1 2 1
    
    Expected output
    1
    
  2. Example 2

    Input
    2 2 2
    
    Expected output
    2