318 B
318 B
Task
Write a program which reads in an integer a larger than 1000
and outputs its last three digits. For example, if a=14325
, the output should be 3 2 5
.
Hint: You need to use integer division and modulo operators.
Input
An integer larger than 1000
.
Output
Last three digits separated by spaces.