~/algor $ cat contests/round-8/F
F. Digits in reverse order
Problem F
ICPC rules
1000 ms
64 MB
A positive integer is given. Print all its digits from right to left.
Input
One integer .
Output
One line with the sequence of digits separated by spaces.
Note
Examples
Input #1
1234
Output #1
4 3 2 1
Input #2
508
Output #2
8 0 5