#include <stdio.h>

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

int main(void)
{
    int x = -1, y = 0, t, n;

    scanf("%d%*c", &n);

    while(n--)
    {
      loop:
        switch(t = getchar())
        {
          case '0':
            if(y) putchar(chars[y][x]);
            x = -1, y = 0;
            goto loop;

          case '\n':
            puts("");
            x = -1, y = 0;
            break;

          default:
            y = t - '0';
            if(chars[y][++x] == '\0') x = 0;
            goto loop;
        }
    }

    return 0;
}