Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/array/print-the-k-th-element

Print the k-th element

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 128 MB 20%
Share

A positive integer , an array of integers and a position are given. Find the element of the array at position .

Choosing the array element at a given index

Input

The first line contains a positive integer . The second line contains integers. The third line contains a positive integer .

Output

One integer — the element at position .

Note



Examples

Input #1
5
10 20 30 40 50
3
Output #1
30
Input #2
1
-7
1
Output #2
-7

Sign in to submit a solution

Signing up is free and takes a minute.