import Data.List

main = interact $ unlines . map keitai . tail . lines

keitai = decode . group

decode [] = []
decode ((x:xs):xss)
 | x == '0' = decode xss
 | otherwise = return ((word key) !! mod (length xs) (length (word key))) ++ decode xss
 where
  key = read (return x)
  word k = [".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"] !! (k-1)