Problem Description

Read n integers and an index i (0-based). Output a[i]. If i is outside range or input is invalid, output OUT OF RANGE.

Input Format

Line1 n. Line2 n integers. Line3 i.

Output Format

Value or OUT OF RANGE.

Sample Test Case

Input:
5 10 20 30 40 50 3
Output:
40

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next