Denny is an elementary school student. However, he is not good at math, and hopes you can help him. One day the teacher gave some addition homework. When he copied the formulas, some errors occurred, where all the '+'s became spaces or lowercase english letters.
To solve this problem, you need to correct the message sent by Denny, and calculate the sum.
For example:
The message sent by Denny: 32n2333 34a1 44a3
The corrected message: 32+2333+34+1+44+3
The sum of the message: 2447
The input contains multiple lines, where each line contains several space-separated strings.
The last line contains only "0\n", and you don't need to output anything this line.
Testcases:
Guarantee that the beginning and end of each line are numbers(not include '\n'), and no more than 1500 characters in a single line.
(3/12) multiple lines, each line contains 3 space-separated strings consisting of only numbers
(3/12) two lines, a single string consisting of numbers and letters
(3/12) multiple lines, each line contains 3 space-separated strings consisting of numbers and letters
(3/12) No constraint.
The output contains multiple lines, each line contains a number: the sum of the corresponding corrected message.