I-th (2) P27411


Statement
 

pdf   zip

Write a program that, given an integer number ii and a sequence of natural numbers x1,,xnx_1, \dots, x_n, prints xix_i.

Input

Input begins with an integer number ii, followed by the sequence x1,,xnx_1, \dots, x_n ended with 1-1.

Output

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

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

    7
    16 8 4 2 -1
    

    Output

    Incorrect position.
    
  • Input

    -4
    1 2 3 4 -1
    

    Output

    Incorrect position.
    
  • 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 Python