~/algor $ cat problems/array/print-the-k-th-element
Print the k-th element
Easy
1000 ms
128 MB
20%
A positive integer , an array of integers and a position are given. Find the element of the array at position .
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