#include <stdio.h>
#include <stdlib.h>
int main(void){
    char map[9][6]={".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"},suzi[2];
    int num,i,o,mozi=0;
    scanf("%d",&num);
    scanf("%1c",&suzi[0]);
    for(i=0;i<num;i++){
        o=-1;
        for(scanf("%1c",&suzi[0]);suzi[0] != '\n';scanf("%1c",&suzi[0])){
            if('0' == suzi[0]){
                if(mozi-1 == 0)
                    o%=5;
                else if(mozi-1 == 6 || mozi-1 == 8)
                    o%=4;
                else
                    o%=3;
                if(mozi != 0)
                printf("%c",map[mozi-1][o]);
                mozi=0;
                o=-1;
            }
            else{ 
                mozi=atoi(suzi);
                o++;
            }
        }
        printf("\n");
    }
    return 0;
}