def main
  button = [
    [''],
    ['.', ',', '!', '?', ' '],
    ['a', 'b', 'c'],
    ['d', 'e', 'f'],
    ['g', 'h', 'i'],
    ['j', 'k', 'l'],
    ['m', 'n', 'o'],
    ['p', 'q', 'r', 's'],
    ['t', 'u', 'v'],
    ['w', 'x', 'y', 'z'],
  ]

  n = gets.chomp.to_i
  n.times do
    outstr = ''
    input = gets.chomp
    push = 0
    num = 0
    input.each_char do |c|
      if c == '0'
        outstr << button[push][num-1] unless push == 0
        push = 0
        num = 0
      else
        push = c.to_i
        num = (num + 1) % button[push].size
      end
    end
    puts outstr
  end
end

main