def btn(n, l)
  a = [".", ",", "!", "?", " "] + [*"a".."z"]
  return case n
  when "1"
    a[0 + l % 5]
  when "2"
    a[5 + l % 3]
  when "3"
    a[8 + l % 3]
  when "4"
    a[11 + l % 3]
  when "5"
    a[14 + l % 3]
  when "6"
    a[17 + l % 3]
  when "7"
    a[20 + l % 4]
  when "8"
    a[24 + l % 3]
  when "9"
    a[27 + l % 4]
  end
end

gets.to_i.times do
  arr, ans = gets.chomp.split(/0+/), ""
  
  arr.each do |str|
    ans += btn(str[0], str.length - 1) if str[0]
  end
  
  puts ans
end