LearnPy Hub
← Variables problems
Hard

Digits of a Number

Read a three-digit number and print its hundreds, tens and units digits on separate lines, using only arithmetic (no strings).

Input

One integer 100–999.

Output

Three lines.

Sample 1

Input
472
Output
4
7
2

Sample 2

Input
100
Output
1
0
0
solution.py
Output appears here
Hints
Digits of a Number · Python practice problem · LearnPy Hub