Comma Sum Multiline

No attempts yetTime limit1sMemory limit256 MB

Problem

A string SS that consists only of digits and commas is given over several lines. The line breaks are not part of SS, so joining the given lines in order gives SS itself. Splitting SS at every comma yields a sequence of natural numbers. Compute the sum of those numbers.

Input

The string SS is given over one or more lines. Each line consists only of digits and commas.

The joined string has length at most 10,000. It does not start or end with a comma, and it never contains two commas in a row. Each comma separated number is a natural number between 1 and 1,000,000 with no leading zero.

Output

Print the sum of the natural numbers contained in SS on one line.