#include <stdio.h>
#include <stdlib.h>

#define MAX_LEN 1024

int main(){
    const char *ch[10] = {" ",".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
    const int chn[10]={1,5,3,3,3,3,3,4,3,4};
    char buf[MAX_LEN+1];
    int i;
    int n,c,d;
    int l;
    if(fgets(buf,MAX_LEN+1,stdin)==NULL)exit(1);
    if(sscanf(buf,"%d",&n)<1)exit(2);
    for(i=0;i<n;i++){
        if(fgets(buf,MAX_LEN+1,stdin)==NULL)exit(3);
        c=0;
        while(buf[c]!='\0' && buf[c]!='\n'){
            d = buf[c]-'0';
            if(d==0){
                c++;
                continue;
            }
            l=0;
            while(buf[++c]-'0'==d)l++;
            if(buf[c++]!='0')exit(4);
            printf("%c",ch[d][l%chn[d]]);
        }
        printf("\n");
    }
    return 0;
}