#D7761. Keitai Message
Keitai Message
Keitai Message
Alice wants to send an email to Miku on her mobile phone.
The only buttons that can be used for input on mobile phones are number buttons. Therefore, in order to input characters, the number buttons are pressed several times to input characters. The following characters are assigned to the number buttons of the mobile phone, and the confirmation button is assigned to button 0. With this mobile phone, you are supposed to press the confirm button after you finish entering one character.
- 1:.,!? (Space)
- 2: a b c
- 3: d e f
- 4: g h i
- 5: j k l
- 6: m n o
- 7: p q r s
- 8: t u v
- 9: w x y z
- 0: Confirm button
For example, if you press button 2, button 2, or button 0, the letter changes from'a'to'b', and the confirm button is pressed here, so the letter b is output. If you enter the same number in succession, the changing characters will loop. That is, if you press button 2 five times and then button 0, the letters change from'a'→' b'→'c' →'a' →'b', and the confirm button is pressed here. 'b' is output.
You can press the confirm button when no button is pressed, but in that case no characters are output.
Your job is to recreate the message Alice created from a row of buttons pressed by Alice.
Input
The first line gives the number of test cases. Each test case is then given a string of digits up to 1024 in length in one row.
Output
Print the string of Alice's message line by line for each test case. However, you can assume that the output is one or more and less than 76 characters.
Example
Input
5 20 220 222220 44033055505550666011011111090666077705550301110 000555555550000330000444000080000200004440000
Output
a b b hello, world! keitai
inputFormat
input on mobile phones are number buttons. Therefore, in order to input characters, the number buttons are pressed several times to input characters. The following characters are assigned to the number buttons of the mobile phone, and the confirmation button is assigned to button 0. With this mobile phone, you are supposed to press the confirm button after you finish entering one character.
- 1:.,!? (Space)
- 2: a b c
- 3: d e f
- 4: g h i
- 5: j k l
- 6: m n o
- 7: p q r s
- 8: t u v
- 9: w x y z
- 0: Confirm button
For example, if you press button 2, button 2, or button 0, the letter changes from'a'to'b', and the confirm button is pressed here, so the letter b is
outputFormat
output. If you enter the same number in succession, the changing characters will loop. That is, if you press button 2 five times and then button 0, the letters change from'a'→' b'→'c' →'a' →'b', and the confirm button is pressed here. 'b' is output.
You can press the confirm button when no button is pressed, but in that case no characters are output.
Your job is to recreate the message Alice created from a row of buttons pressed by Alice.
Input
The first line gives the number of test cases. Each test case is then given a string of digits up to 1024 in length in one row.
Output
Print the string of Alice's message line by line for each test case. However, you can assume that the output is one or more and less than 76 characters.
Example
Input
5 20 220 222220 44033055505550666011011111090666077705550301110 000555555550000330000444000080000200004440000
Output
a b b hello, world! keitai
样例
5
20
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
a
b
b
hello, world!
keitai
</p>