Integer
Integer-19
Integer-20
Integer-21
~/algor $ cat problems/ikki-xonali-bolaklar-yigindisi
Sum of two-digit parts
Easy
1000 ms
64 MB
14%
A six-digit positive integer $n$ is given. Split it, starting from the left, into three parts of two digits each and find the sum of the parts: for $123456$ it is $12 + 34 + 56 = 102$. If a part starts with $0$, it counts as a one-digit number: $05$ is $5$.
Input
One six-digit positive integer $n$.
Output
One integer — the sum of the parts.
Note
$100000 \le n \le 999999$
Examples
Input #1
123456
Output #1
102
Input #2
100509
Output #2
24