By Neilor Tonin, URI Brazil
The input contains many test cases. The first line of each input contains a single integer N, indicating the number of following test cases. Each test case is a sequence of three chars created by Paula. This sequence contains in the first position a character between '0' and '9', a uppercase or lowercase character and another character between '0' and '9'.
For each test case, one line must be printed with an integer, representing the solution for each sequence created by Paula
|Input Sample||Output Sample|