LearnPy Hub
← Lists problems
Easy

Reverse the List

Read a list of integers and print it in reverse order, separated by spaces.

Input

One line of integers.

Output

One line.

Sample 1

Input
1 2 3
Output
3 2 1

Sample 2

Input
5
Output
5
solution.py
Output appears here
Reverse the List · Python practice problem · LearnPy Hub