e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

PP2. Week 8: April 26 - May 2

Sum of digits in the text

The text is given. Find the sum of all digits in it.

Input

Contains sequence of characters - a text.

Output

Print the sum of all digits in the text.

Example

Text contains digits 4, 1, 2, 4. Their sum is 4 + 1 + 2 + 4 = 11.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Cats =="+41"
  Dogs 2 and 4pigs
Output example #1
11
Author Michael Medvediev