// Aizu Vol-20 2006: Keitai Message
// 2017.8.12 bal4u@uu

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

char *gets();
char *t[10] = {	"\0", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
int w[10] = { 0, 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char buf[1100], *p;

int main()
{
	int n;
	int a, k;

	gets(buf), n = atoi(buf);
	while (n-- > 0) {
		gets(p = buf);
		while (*p) {
			if (*p == '0') p++;
			else {
				a = *p++ - '0', k = 1;
				while (*p != '0') p++, k++;
				p++;
				putchar(t[a][(k - 1) % w[a]]);
			}
		}
		putchar('\n');
	}
	return 0;
}