c = %{.,!? abc def ghi jkl mno pqrs tuv wxyz}.split
c[0] += ' '
gets.to_i.times do
  gets.chomp.split('').map(&:to_i).push('/').each_cons(2).reduce(0) do |t, (a, b)|
    if a != b
      print c[a-1][t % c[a-1].size] if a != 0
      t = 0
    else t += 1
    end
  end
  puts
end