Repeated numbers#8698

Repeated numbers

1 second
128 megabytes
Very easy

Integers from to are given as input, one in each line. You must enter the numbers till the same number repeats itself for the first time.

Input

Each line contains one of the numbers , , , , .

Output

Output the number of readings until the first repetition.

Examples

Example 1

Loading
Loading

Note

The solution of the problem can be modeled by the behavior of "**Codey Rocky**", which recognizes the colors of the cards marked with numbers .