#C12184. Reverse the Digits

    ID: 41583 Type: Default 1000ms 256MiB

Reverse the Digits

Reverse the Digits

You are given a non-negative integer ( n \ge 0 ) and your task is to output its digits in reverse order. For example, if ( n = 12345 ), then the output should be the digits in reverse order: 5 4 3 2 1. The input is read from the standard input (stdin) and the output should be printed to the standard output (stdout).

inputFormat

The input consists of a single non-negative integer ( n ). The integer is provided via standard input (stdin).

outputFormat

Print the digits of ( n ) in reverse order, separated by a single space, on one line on standard output (stdout).## sample

0
0

</p>