#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cstdlib>
#define cinf(n,x,y) for(int i=0;i<(n);i++) cin >> x[i] >> y[i];
typedef long long int ll;
using namespace std;

string t[10]={"",".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
string s;
int main(){
	int a; cin >>a;
	for(int i=0;i<a;i++){
		cin >>s;
		int line=0;
		char now='0';
		for(int i=0;i<s.size();i++){
			if(now!=s[i]){
				if(now!='0'){
					cout << t[now-'0'][(line-1)%t[now-'0'].size()];
				}
				line=1;
				now=s[i];
			}
			else{
				line++;
			}
		}
		cout << endl;
	}
}
