Skip to main content
LIVE CONTEST: ALGOR Contest: Round #4 (Special Challenge) is live now!
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.

The sum of the three 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

Sign in to submit a solution

Signing up is free and takes a minute.