Comma Separated Sum
Time limit1sMemory limit256 MB
Add all the natural numbers listed in the comma-separated string S.
Problem
A string made up only of digits and commas is given. lists natural numbers in order, separated by single commas. Find the sum of all natural numbers written in .
Input
The first line contains the string . The length of is at most 100, and consists only of digits and commas. Each natural number written in is at most 1,000,000.
Output
Print the sum of the natural numbers written in on the first line.