Reversing a list of words (3)

Write a program that reads a number nn and a sequence of nn or more words, and prints the first nn words reversed.

Input

Input begins with a natural number nn, followed by, at least, nn words.

Output

Print the first nn words of the original sequence, in reverse order, and one per line.

Observation

For the sake of practice, use recursion (not arrays).

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T12:00:25.825Z

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