#include<stdio.h>
int main(){
  int i,n,c=0,a,m[]={1,5,3,3,3,3,3,4,3,4};
  char s[2000],d[][6]={"",".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
  scanf("%d",&n);
  while(n--){
    scanf("%s",s);
    for(i=a=0;s[i];c=s[i++]-'0'){
      if(s[i]-'0')a++;
      else{
	printf("%c",d[c][(a-1)%m[c]]);
	a=0;
      }
    }
    printf("\n");
  }
  return 0;
}