#Z15109. 查找特定的值

查找特定的值

Description

Search for a given value in a sequence (indexed starting from 1) and output the position of its first occurrence.

Input Format

The first line contains a positive integer n, representing the number of elements in the sequence. 1 ≤ n ≤ 10000.
The second line contains n integers, sequentially listing each element of the sequence, with adjacent integers separated by a single space. The absolute value of each element does not exceed 10000.
The third line contains an integer x, which is the specific value to be searched for. The absolute value of x does not exceed 10000.

Output Format

If x exists in the sequence, output the index of its first occurrence; otherwise, output -1.

5
2 3 6 7 3
3


2