Integer
Integer-18
Integer-19
Integer-20
~/algor $ cat problems/integer-oxirgi-uch-raqam-yigindisi
Sum of the last three digits
Easy
1000 ms
64 MB
13%
A positive integer $n$ is given. Find the sum of its last three digits. For example, for $12345$ it is $3 + 4 + 5 = 12$.
Input
One positive integer $n$.
Output
One integer — the sum of the last three digits.
Note
$100 \le n \le 10^{9}$
Examples
Input #1
12345
Output #1
12
Input #2
1000
Output #2
0