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

int main(void){
	char stringTable[][6] = {"", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
	char strings[1025];
	char string[2];
	char message[76];
	int length;
	int index_c=0;
	int index_m=0;
	int pressed=0;
	int num=0;
	int times=0;
	int tableLen = 0;
	int i;

	scanf("%d", &length);
	for(i=0; i<length; i++){
		scanf("%s", strings);
		while(strings[index_c] != '\0'){
			string[0] = strings[index_c];
			string[1] = '\0';
			num = atoi(string);
			if(num){
				//printf("num: %d\n", num);
				pressed = num;
				times ++;
			}else{  // 0が押された
				if(pressed){
					if(pressed == 1) tableLen = 5;
					else if(pressed == 2 || pressed == 3 || pressed == 4 || pressed == 5 || pressed == 6 || pressed == 8) tableLen = 3;
					else if(pressed == 7 || pressed == 9) tableLen = 4;
					message[index_m] = stringTable[pressed][(times - 1) % tableLen];
					//printf("%c_\n", message[index_m]);
					index_m ++;
					times = 0;
					pressed = 0;
				}
			}
			index_c ++;
		}
		message[index_m] = '\0';
		printf("%s\n", message);
		times = 0;
		index_m = 0;
		index_c = 0;
	}

	return 0;
}