Problems
Mixed sequence
Mixed sequence
A sequence of characters separated by spaces is given. Each character of the sequence is a capital or small letter of the Latin alphabet, or a digit from 0 to 9.
Find the sum of the numbers in this sequence. The number of characters included in the sequence is no more than 10000.
Input
Sequence of characters separated by spaces.
Output
Print the sum of the digits in the sequence, or 0 if there are no digits in the sequence.
Input example #1
A 1 2 B C D A B C 1 9 B 3
Output example #1
16
Input example #2
A B C
Output example #2
0