eolymp
bolt
Try our new interface for solving problems
Problems

Sum of digits in the text

Sum of digits in the text

The text is given. Find the sum of all digits in it. \InputFile Contains sequence of characters --- a text. \OutputFile Print the sum of all digits in the text. \Examples 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