Solve The Mystery
Input:
First line contains T - number of test cases.
Following T lines each contains a string of characters in the range [a-z] only
Output:
Print a numeric string for each test case.
Constraints:
1 ≤ T ≤ 100
1 ≤ Length of String ≤ 100