Problem1149--猜猜10在哪里?

1149: 猜猜10在哪里?

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

输入若干数字,当首次读到10时,输出它是第几个,若已读了20个数字仍没有10,就结束,输出0

Input

输入若干数字

Output

当首次读到10时,输出它是第几个,若已读了20个数字仍没有10,就结束,输出0

Sample Input Copy

4 5 6 7 7 2 3 10 6 1

Sample Output Copy

8

Source/Category