Integer
Integer-16
Integer-17
Integer-18
~/algor $ cat problems/raqamlar-yigindisi
Sum of digits
Easy
1000 ms
64 MB
13%
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