using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

using CHY72;

namespace CHY72{
    
    public class PointXY<T>where T:IComparable {
        public T X , Y;
        public bool Flag = false;
        public PointXY(T _X,T _Y) {
            X = _X; Y = _Y;
        }
        public static bool operator ==(PointXY<T> P1, PointXY<T> P2) {
            return (P1.X.CompareTo( P2.X) == 0 && P1.Y.CompareTo (P2.Y) == 0);
        }
        public static bool operator !=(PointXY<T> P1, PointXY<T> P2) {return !(P1 ==P2);}
        public override int GetHashCode() {return X.GetHashCode() ^ Y.GetHashCode();}
        public override bool Equals(object obj) {
            if (obj == null || this.GetType() != obj.GetType()) {return false;}
            return (this == (PointXY<T>)obj);
        }         

    }
    

}    

public class Program {
    static bool ReadLine_1(ref int num1, bool Fin0 = true) {
        string str = Console.ReadLine();
        num1 = int.Parse(str);
        return (Fin0 && num1 == 0);
    }
    static int  ReadLine_1() {
        return  int.Parse(Console.ReadLine());
    }
    static bool ReadLine_2(ref int num1, ref int num2, char Spliter = ' ', bool Fin0 = true) {
        string str = Console.ReadLine();
        num1 = int.Parse(str.Split(Spliter)[0]);
        num2 = int.Parse(str.Split(Spliter)[1]);
        return (Fin0 && num1 == 0);
    }
    const int DefaultMax = 727272;

    static char KetaiPushIn(int Times, char[] Chars) {
        return Chars[Times % Chars.Length ];
    }
    static char KeitaiPush(char n,int Times) {
        Times--;//0 origin
        switch (n) {
            case '1': return KetaiPushIn(Times, new char[] { '.', ',', '!' ,'?',' '});
            case '2': return KetaiPushIn(Times, new char[] { 'a', 'b', 'c' });
            case '3': return KetaiPushIn(Times, new char[] { 'd', 'e', 'f' });
            case '4': return KetaiPushIn(Times, new char[] { 'g', 'h', 'i' });
            case '5': return KetaiPushIn(Times, new char[] { 'j', 'k', 'l' });
            case '6': return KetaiPushIn(Times, new char[] { 'm', 'n', 'o' });
            case '7': return KetaiPushIn(Times, new char[] { 'p', 'q', 'r' , 's'});
            case '8': return KetaiPushIn(Times, new char[] { 't', 'u', 'v' });
            case '9': return KetaiPushIn(Times, new char[] { 'w', 'x', 'y' ,'z'});
        }
        return '#';
    }


    static void Main(string[] args) {
        int iiiiMax = ReadLine_1();
        for (int iiii = 0; iiii < iiiiMax; iiii++) {
            char[] PushedChar = Console.ReadLine().ToCharArray();
            List<char> Output = new List<char>();
            char CurrentPushchar = '0';
            int CurrentPushTimes = 0;
            for (int i = 0; i < PushedChar.Length; i++) {
                
                if (PushedChar[i] == '0') {
                    if (CurrentPushchar != '0') { 
                        Output.Add(KeitaiPush(CurrentPushchar,CurrentPushTimes));
                        CurrentPushchar = '0';
                        CurrentPushTimes = 0;
                    } 
                }else {
                    if (CurrentPushTimes == 0) CurrentPushchar = PushedChar[i];                      
                    CurrentPushTimes++;
                }
            
            }
            Console.WriteLine(Output.ToArray());
        }

    }
}

Measured memory_bytes: 5600