Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/ikki-xonali-bolaklar-yigindisi

Sum of two-digit parts

Easy 1000 ms 64 MB 14%
Share

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$.

A six-digit number split into three two-digit parts; the parts are added

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

Sign in to submit a solution

Signing up is free and takes a minute.