Print Digits of a NumberEasy

Print Digits of a Number

EasyPractice library · +10 XPbasicsloopsarithmetic

Given a single positive integer N, print each of its digits on a new line, in the order they appear from left to right.

Input

A single line containing a positive integer N.

Output

Print each digit of N on a new line. The order of digits should be preserved.

Constraints

1 <= N <= 10^9

Time limit 1 s (native code; slower languages get more)Memory 256 MB12 hidden tests

Example 1

Input
12345
Output
1
2
3
4
5

Prints each digit of 12345 on a new line.

Example 2

Input
7
Output
7

Prints the single digit 7.

Hints