ALGOR Contest: Round #4 (Special Challenge)
Problem B · 100 points ·
ICPC rules
~/algor $ cat contests/round-4/B
B. Sum of digits
1000 ms
64 MB
A three-digit positive integer $n$ is given. Find the sum of its digits.
Input
One three-digit positive integer $n$.
Output
One integer — the sum of the digits.
Note
$100 \le n \le 999$
Examples
Input #1
123
Output #1
6
Input #2
100
Output #2
1