By Neilor Tonin, URI Brazil
Joãozinho have to help his father. One specific report are being pressed with unwished letters between the three existing numbers. You have to do a program to sum these three numbers, ignoring the letters existents. Each line have no spaces.
The first line of input contains an integer N (N < 100000). Follow N lines with exacly 14 characters that must be read and the three number existing in this line must be extracted and summed.
For each input, your program must print a integer representing the sum of the 3 existent numbers of that line.
|Input Sample||Output Sample|