#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;

    scanf("%*d%*c");

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

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

          case EOF:
            return 0;

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