var button =  [
    [],
    ['.',',','!','?',' '],
    ['a','b','c'],
    ['d','e','f'],
    ['g','h','i'],
    ['j','k','l'],
    ['m','n','o'],
    ['p','q','r','s'],
    ['t','u','v'],
    ['w','x','y','z']
]


function Main(input){
    input = input.split("\n");
    var n = parseInt(input[0],10);

    for(var i = 1;i <= n;i++){
        var c,pre = 0,ans = "";
        for(var j = 0;j < input[i].length;j++){
            if(input[i][j] === '0'){
                if(pre != 0)
                    ans += button[parseInt(input[i][j - 1],10)][c];
            }else if(pre == 0){
                c = 0;
            }else{
                c++;
                if(input[i][j] == "1")
                    c %= 5;
                else if(input[i][j] == "7" || input[i][j] == '9')
                    c %= 4;
                else
                    c %= 3;
            }
            pre = parseInt(input[i][j],10);
        }
        console.log(ans);
    }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));

 