#include <stdio.h>
#define M 1030

int main ( void ) {
  int i, j;
  int n;
  char ch[ M ];
  int count;

  scanf ( "%d", &n );
  for ( i = 0; i < n; i++ ) {
    ch[ 0 ] = '0';
    scanf ( "%s", ch + 1 );

    count = 0;

    for ( j = 1; ch[ j ]; j++ ) {
      if ( ch[ j ] == '0' ) {
        if ( ch[ j - 1 ] == '1' ) {
          count %= 5;
          if ( count == 1 ) printf ( "." );
          else if ( count == 2 ) printf ( "," );
          else if ( count == 3 ) printf ( "!" );
          else if ( count == 4 ) printf ( "?" );
          else if ( count == 0 ) printf ( " " );
        } else if ( ch[ j - 1 ] == '2' ) {
          count %= 3;
          if ( count == 1 ) printf ( "a" );
          else if ( count == 2 ) printf ( "b" );
          else if ( count == 0 ) printf ( "c" );
        } else if ( ch[ j - 1 ] == '3' ) {
          count %= 3;
          if ( count == 1 ) printf ( "d" );
          else if ( count == 2 ) printf ( "e" );
          else if ( count == 0 ) printf ( "f" );
        } else if ( ch[ j - 1 ] == '4' ) {
          count %= 3;
          if ( count == 1 ) printf ( "g" );
          else if ( count == 2 ) printf ( "h" );
          else if ( count == 0 ) printf ( "i" );
        } else if ( ch[ j - 1 ] == '5' ) {
          count %= 3;
          if ( count == 1 ) printf ( "j" );
          else if ( count == 2 ) printf ( "k" );
          else if ( count == 0 ) printf ( "l" );
        } else if ( ch[ j - 1 ] == '6' ) {
          count %= 3;
          if ( count == 1 ) printf ( "m" );
          else if ( count == 2 ) printf ( "n" );
          else if ( count == 0 ) printf ( "o" );
        } else if ( ch[ j - 1 ] == '7' ) {
          count %= 4;
          if ( count == 1 ) printf ( "p" );
          else if ( count == 2 ) printf ( "q" );
          else if ( count == 3 ) printf ( "r" );
          else if ( count == 0 ) printf ( "s" );
        } else if ( ch[ j - 1 ] == '8' ) {
          count %= 3;
          if ( count == 1 ) printf ( "t" );
          else if ( count == 2 ) printf ( "u" );
          else if ( count == 0 ) printf ( "v" );
        } else if ( ch[ j - 1 ] == '9' ) {
          count %= 4;
          if ( count == 1 ) printf ( "w" );
          else if ( count == 2 ) printf ( "x" );
          else if ( count == 3 ) printf ( "y" );
          else if ( count == 0 ) printf ( "z" );
        }
        count = 0;
      } else {
        count ++;
      }
    }
    printf ( "\n" );
  }

  return ( 0 );
}