I-th (1) P39225


Statement
 

pdf   zip

thehtml

Write a program that, given an integer number i and a sequence of natural numbers x1, …, xn, prints xi.

Input

Input begins with a number i, followed by the sequence x1, …, xn ended with −1. It is known that 1 ≤ in.

Output

Print the content of the position i as it is shown in the examples.

Public test cases
  • Input

    5
    1 3 5 7 9 0 2 4 6 8 -1
    

    Output

    At the position 5 there is a(n) 9.
    
  • Input

    4
    16 8 4 2 -1
    

    Output

    At the position 4 there is a(n) 2.
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java Lua Perl Python