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.
Each line contains one of the numbers , , , , .
Output the number of readings until the first repetition.
Example 1
The solution of the problem can be modeled by the behavior of "**Codey Rocky**", which recognizes the colors of the cards marked with numbers .