Enter numbers from 0 to 9 in different order, one in each line. You must enter the numbers till the same number repeats itself for the first time.
####Incoming data
Each line contains one of the numbers 0, 1, 2, ..., 9.
####Output data
Displays the number of reads before the first repetition.
Example 1