Problem: 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  

SAMPLE INPUT
10
key
to
control
nine
tails
is
in
your
hand
phone

SAMPLE OUTPUT
539
86
2668765
6463
82457
47
46
9687
4263
74663

Solution (in PYTHON):

Solution:
import sys
t = input()
while t:
	s = raw_input()
	for i in s:
		if i in "abc":sys.stdout.write('2')
		elif i in "def":sys.stdout.write('3')
		elif i in "ghi":sys.stdout.write('4')
		elif i in "jkl":sys.stdout.write('5')
		elif i in "mno":sys.stdout.write('6')
		elif i in "pqrs":sys.stdout.write('7')
		elif i in "tuv":sys.stdout.write('8')
		elif i in "wxyz":sys.stdout.write('9')
	print ''
	t -= 1