#include<stdio.h>

int main(){
	int i,j;
	int n;
	char ans[77];
	char input[1025];
	char set[10][5]={"null",".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
	int now,cnt;

	scanf("%d",&n);
	while(n--){
		j = 0;
		now = 0;
		cnt = -1;
		scanf("%s",input);
		for(i = 0;input[i] != '\0';i++){
			switch(input[i]){
				case '0':
					if(now){
						ans[j] = set[now][cnt];
						j++;
						cnt = -1;
						now = 0;
					}
					break;
				case '1':
					now = input[i] -'0';
					cnt++;
					cnt %= 5;
					break;
				case '7':
				case '9':
					now = input[i] -'0';
					cnt++;
					cnt %= 4;
					break;
				case '2':
				case '3':
				case '4':
				case '5':
				case '6':
				case '8':
					now = input[i] -'0';
					cnt++;
					cnt %= 3;
					break;
			}
		}
		ans[j] = '\0';
		printf("%s\n",ans);
	}
	return 0;
}