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 data
Contains sequence of characters - a text.
Output data
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.
Examples
Input example #1
Cats =="+41" Dogs 2 and 4pigs
Output example #1
11