#include<iostream>
#include<string>
using namespace std;

int main()
{
	int n, p = 0, cnt = 0;
	string str, key[] = {"", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
	
	cin >> n;
	while (cin >> str) {
		for (char c : str) {
			n = c - '0';
			if (n) {
				cnt++;
			} else if (p != n) {
				cout << key[p][(cnt-1) % key[p].size()];
				cnt = 0;
			}
			p = n;
		}
		cout << endl;
	}
	
	return 0;
}