#include <stdio.h>
#include <string.h>

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

int main(void){
	int i,j,n;
	char c,tc;

	scanf("%d ",&n);
	while(n--){
		for(i=0;;i=j+1){
			for(j=i;(c=getchar())!='0' && c!='\n';tc=c,j++);
			if(c == '\n') break;

			if(i != j){
				putchar(btn[tc-'1'][(j-i-1)%strlen(btn[tc-'1'])]);
			}
		}
		printf("\n");
	}

	return 0;
}