I-th (2)

Write a program that, given an integer number i and a sequence of
natural numbers x₁, …, x_(n), prints x_(i).

Input

Input begins with an integer number i, followed by the sequence
x₁, …, x_(n) ended with −1.

Output

If the position i is correct, print the content of i as it is shown in
the examples. Otherwise, print “Incorrect position.”.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:32:13.093Z

© Jutge.org, 2006–2026.
https://jutge.org
