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

ІІІ етап Всеукраїнської олімпіади з інформатик в Житомирській обл. 2019-2020

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.

Time limit 1 second
Memory limit 128 MiB
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
Source 2020 XXXIV regional olympiad in informatics, Zhitomyr