#include <stdio.h>

const char* str_list[9]={
	".,!? ",
	"abc",
	"def",
	"ghi",
	"jkl",
	"mno",
	"pqrs",
	"tuv",
	"wxyz"
};

char input[1028];

int main(void) {
	int data_num,cur_data;
	char* pos;
	int count;
	int mozi;
	scanf("%d",&data_num);
	for(cur_data=0;cur_data<data_num;cur_data++) {
		scanf("%s",input);
		count=-1;
		mozi=0;
		for(pos=input;*pos!=0 && *pos!='\n';pos++) {
			if(*pos=='0') {
				if(count>=0)putchar(str_list[mozi][count]);
				count=-1;
				mozi=0;
			} else {
				if(*pos-'1'==mozi) {
					count++;
					if(str_list[mozi][count]==0)count=0;
				} else {
					count=0;
					mozi=*pos-'1';
				}
			}
		}
		putchar('\n');
	}
	return 0;
}