P0010. Words in odd positions

Your task is to write a program that reads a sequence of words ending with a dot and prints, in reverse order, those that are in odd positions.

Input

The input is a sequence of words ending with a dot, one per line.

Output

Your program must print the words which are in odd positions in reverse order, one per line.

Observation

Vectors are not allowed in this exercise.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:13:56.384Z

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