Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/boshqacha-son

The odd one out

Easy 1000 ms 64 MB 19%
Share

Three integers $A$, $B$ and $C$ are given. Two of them are equal and one is different. Determine the position of the different number ($1$, $2$ or $3$).

The place of the different number among two equal ones is found

Input

One line with three integers: $A$, $B$ and $C$.

Output

One integer: $1$, $2$ or $3$.

Note

$-10^{9} \le A, B, C \le 10^{9}$

Examples

Input #1
1 2 2
Output #1
1
Input #2
2 1 2
Output #2
2

Sign in to submit a solution

Signing up is free and takes a minute.