#include <stdio.h>
#include <ctype.h>

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

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int n;

  scanf ( "%d", &n );
  while ( n-- )
  {
    const char  * p   = NULL;
    int           ch  = '\0';

    while ( !isdigit ( ch ) ) ch = getchar ( );

    for ( ; isdigit ( ch ); ch = getchar ( ) )
    {
      if ( ch == '0' )
      {
        if ( p != NULL )  putchar ( *p );
        p = NULL;
      }
      else
      {
        if ( p == NULL )  p = "";
        else              ++p;

        if ( *p == '\0' ) p = s[ ch - '1' ];
      }
    }
    puts ( "" );
  }

  return ( 0 );
}