Problem Description

Read n integers and a target x. Output the first index (0-based) where x appears, else -1.

Input Format

Line1 n. Line2 n integers. Line3 x.

Output Format

One integer index.

Sample Test Case

Input:
5 1 2 3 2 5 2
Output:
1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next