using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;

class Program
{

    static void Main(string[] args)
    {

        var q = new AnswerCollecter<string>();
        string[,] list =
            new string[,]{{".",",","!","?"," "},
        {"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",""}
        };
        int[] patternLength = new int[] { 5, 3, 3, 3, 3, 3, 4, 3, 4 };
        int n = sc.NextInt();
        for (int i = 0; i < n; i++)
        {
            int count = 0;
            int putKey = 0;
            string s = Console.ReadLine();
            string aliceStatement = "";
            for (int j = 0; j < s.Length; j++)
            {
                if (putKey == 0)
                {
                    putKey = s[j] - '0';
                    if (putKey != 0)
                        count++;
                }
                else
                {
                    if (s[j] - '0' == 0)
                    {
                        aliceStatement += list[ putKey - 1, (count-1) % patternLength[putKey - 1]];
                        putKey = 0;
                        count = 0;
                    }
                    else
                      count++;
                }
            }
            q.Enqueue(aliceStatement);
        }
        q.Answer();
#if DEBUG
    Console.ReadLine();
#endif
    }


}

public class AnswerCollecter<T>
{
    private Queue<T> q;



    public AnswerCollecter()
    {
        q = new Queue<T>();
    }

    public void Enqueue( T item)
    {
        q.Enqueue(item);
    }

    public void Answer()
    {
        while (q.Count != 0)
            Console.WriteLine(q.Dequeue());
    }
    public int Count()
    {
        return q.Count;
    }
}
   
public static class Scanner
{
    public static string NextString()
    {
        string tmp = "";
        while (true)
        {
            string readData = char.ConvertFromUtf32(Console.Read());
            if (readData == " " || readData == "\n")
                break;
            tmp += readData;
        }
        return tmp;
    }

    public static string[] NextStrArray()
    {
        return Console.ReadLine().Split(' ');
    }

    public static long[] NextLongArray()
    {
        string[] s = NextStrArray();
        long[] a = new long[s.Length];
        for (int i = 0; i < a.Length; i++)
        {
            a[i] = long.Parse(s[i]);
        }
        return a;
    }
    public static int[] NextIntArray()
    {

        string[] s = NextStrArray();
        int[] a = new int[s.Length];
        for (int i = 0; i < a.Length; i++)
        {
            a[i] = int.Parse(s[i]);
        }
        return a;
    }
    public static int NextInt()
    {
        string tmp = "";
        while (true)
        {
            string readData = char.ConvertFromUtf32(Console.Read());
            if (readData == " " || readData == "\n")
                break;
        
            tmp += readData;
        }
        return int.Parse(tmp);
    }
    public static double NextDouble()
    {
        string tmp = "";
        while (true)
        {
            string readData = char.ConvertFromUtf32(Console.Read());
            if (readData == " " || readData == "\n")
                break;
            tmp += readData;
        }
        return double.Parse(tmp);
    }
    public static long NextLong()
    {
        string tmp = "";
        while (true)
        {
            string readData = char.ConvertFromUtf32(Console.Read());
            if (readData == " " || readData == "\n")
                break;
            tmp += readData;
        }
        return long.Parse(tmp);
    }
    public static double[] NextDoubleArray()
    {

        string[] s = NextStrArray();
        double[] a = new double[s.Length];
        for (int i = 0; i < a.Length; i++)
        {
            a[i] = double.Parse(s[i]);
        }
        return a;
    }
}

Measured memory_bytes: 5936