Problems
Find a sequence
Find a sequence
The integers from 0 to 9 are given. Read the numbers until the first three consecutive numbers appear.
Input
Each line contains one digit 0, 1, 2, ..., 9.
Output
Print the number of readings until the first three consecutive numbers appear.
Input example #1
3 6 5 6 7 2
Output example #1
5