#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char K[10][6]={
  {"no"},
  {".,!? "},
  {"abc"},
  {"def"},
  {"ghi"},
  {"jkl"},
  {"mno"},
  {"pqrs"},
  {"tuv"},
  {"wxyz"}};

char Henkan(int, int);
int main()
{
  int N,i,j,sum=0,SSS;
  char S[77],SS;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%s",S);
    for(j=0;j<strlen(S);j++){
      if(S[j]!=48)sum++;
      else if(S[j-1]!=48 && j>0){
        SSS=S[j-1]-'0';
        SS=Henkan(SSS,sum-1);
	printf("%c",SS);
        sum=0;
      }
    }
    printf("\n");
  }
  return 0;
}

char Henkan(int mo,int sum)
{
  if(mo==0)return '0';
  return K[mo][sum%(strlen(K[mo]))];
}
   