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

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

int main(void)
{
    int n;

    scanf("%d", &n);
    while (n--){
        char key[2048] = "0";
        int num;
        int now = 0;
        int i;

        scanf("%s", key + 1);
        for (i = 1; key[i]; i++){
            if (key[i - 1] == '0'){
                now = key[i] - '0';
                num = 0;
            }
            else if (key[i] == '0' && now != 0) putchar(table[now][num % strlen(table[now])]);
            else num++;
        }
        puts("");
    }

    return 0;
}