Олимпиадный тренинг

Задача 18686. Number of numbers in a sequence up to two of the same


Задача

Темы:
You enter a sequence of numbers until you enter two equal numbers in a row. Count the number of numbers in the sequence.
 
Input
The input is numbers on the same line, separated by a single space. The input ends with two identical digits in a row.

Output
Print the number of numbers, counting the last two numbers.
 
 
Examples
# Input Output
1 3 5 24 4 3 5 3 5 3 5 5 11