A string S that consists only of digits and commas is given over several lines. The line breaks are not part of S, so joining the given lines in order gives S itself. Splitting S at every comma yields a sequence of natural numbers. Compute the sum of those numbers.
The string S 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.
Print the sum of the natural numbers contained in S on one line.