LearnPy Hub
← Arena
EasyRating 800

Where Is X?

Print the position (starting at 1) of the first time x appears in the list, or -1 if it isn't there.

Input

n and x, then n integers.

Output

A position or -1.

Sample 1

Input
5 3
1 3 5 3 9
Output
2

Sample 2

Input
3 7
1 2 3
Output
-1
solution.py
Output appears here
Where Is X? · Python Arena problem · LearnPy Hub