Reverse of sequences

Write a program that reads sequences of integer numbers, and prints each one reversing the order of its elements.

Input

Input consists of several sequences. Each sequence consists of a natural number nn, followed by nn integer numbers.

Output

Print each sequence in reverse order in a line.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:31:35.643Z

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