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

int main(){
  char keitai[10][5],a,b;
  int tes,i;

  strcpy( keitai[1], ".,!? " );
  strcpy( keitai[2], "abc" );
  strcpy( keitai[3], "def" );
  strcpy( keitai[4], "ghi" );
  strcpy( keitai[5], "jkl" );
  strcpy( keitai[6], "mno" );
  strcpy( keitai[7], "pqrs" );
  strcpy( keitai[8], "tuv" );
  strcpy( keitai[9], "wxyz" );

  scanf("%d",&tes);

  while(tes--){
    while(1){
      scanf("%c",&a);

      i = 0;
      b = a;
      while((b != '0' ) &&  (b != '\n')){
        scanf("%c",&b);
        i++;
      }
      if (i != 0){
        switch(a){
        case 2:
        case 3:
        case 4:
        case 5:
        case 6:
        case 8:
            printf("%c",keitai[a][i % 3]);
            break;
        case 7:
        case 9:
            printf("%c",keitai[a][i % 4]);
            break;
        case 1:
            printf("%c",keitai[a][i % 5]);
            break;
        default: break;
        }
      }
        if (a == '\n') break;
    }
    printf("\n");
    }

  return 0;
}