Reverse A Number

easy
1. You've to display the digits of a number in reverse.
2. Take as input "n", the number for which digits have to be display in reverse.
3. Print the digits of the number line-wise, but in reverse order.

Input Format

"n" where n is any integer.

Output Format

d1 d2 d3 ... digits of the number in reverse

Constraints

1 <= n < 10^9

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
65784383
Output
3
8
3
4
8
7
5
6
Previous
Digits Of A Number
Next
Rotate A Number

Related Questions