Problem: 

Input

The first line of the input contains a single integer N (1 ≤ N ≤ 24). The next N lines contain 5 space-separated integers each. The first three integers will be between 0 and 2, inclusive. The last two integers will be between 0 and 3, inclusive. The sum of the first three integers will be equal to the sum of the last two integers.

Output

Output the result – a string of lowercase English letters.

Examples

Input


1
1 0 0 1 0


Output


a


Input


10
2 0 0 1 1
1 1 1 2 1
2 1 0 1 2
1 1 0 1 1
2 1 0 2 1
1 1 1 2 1
1 2 1 3 1
2 0 0 1 1
1 1 0 1 1
1 1 2 2 2


Output


codeforcez

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define lf(i, a, b) for(ll i=a;i<b;i++)
#define lb(i, a, b) for(ll i=a;i>b;i--)

void solve(){
    int n, a, b, c, d ,e;
    cin>>n;
    string s = "";
    lf (i, 0, n){
        cin>>a>>b>>c>>d>>e;
        switch (a){
            case 1:
                switch (b){
                    case 0:
                        switch (c){
                            case 0:
                                s += "a";
                                break;
                            case 1:
                                s += "k";
                                break;
                            case 2:
                                s += "u";
                                break; 
                        }
                        break;
                    case 1:
                        switch(c){
                            case 0:
                                switch (d){
                                    case 1:
                                        s += "e";
                                        break;
                                    case 2:
                                        s += "b";
                                        break;
                                }
                                break;
                            case 1:
                                switch (d){
                                    case 2:
                                        s += "o";
                                        break;
                                    case 3:
                                        s += "l";
                                        break;
                                }
                                break;
                            case 2:
                                switch (d){
                                    case 2:
                                        s += "z";
                                        break;
                                    case 3:
                                        s += "v";
                                        break;
                                }
                                break;
                        }
                        break;
                    case 2:
                        switch (c){
                            case 0:
                                switch (d){
                                    case 1:
                                        s += "j";
                                        break;
                                    case 2:
                                        s += "h";
                                        break;
                                }
                                break;
                            case 1:
                                switch (d){
                                    case 1:
                                        s += "w";
                                        break;
                                    case 2:
                                        s += "t";
                                        break;
                                    case 3:
                                        s += "r";
                                        break;
                                }
                                break;
                        }
                        break;
                }
                break;
            case 2:
                switch (b){
                    case 0:
                        switch (c){
                            case 0:
                                s += "c";
                                break;
                            case 1:
                                s += "m";
                                break;
                            case 2:
                                s += "x";
                                break;
                        }
                        break;
                    case 1:
                        switch (c){
                            case 0:
                                switch (d){
                                    case 1:
                                        s += "d";
                                        break;
                                    case 2:
                                        s += "f";
                                        break;
                                }
                                break;
                            case 1:
                                switch (d){
                                    case 2:
                                        s += "n";
                                        break;
                                    case 3:
                                        s += "p";
                                        break;
                                }
                                break;
                            case 2:
                                s += "y";
                                break;
                        }
                        break;
                    case 2:
                        switch(c){
                            case 0:
                                s += "g";
                                break;
                            case 1:
                                s += "q";
                                break;
                        }
                        break;
                }
                break;
        }
    }
    cout<<s<<endl;
}
int main(){
    fast;
    bool test_cases = false;
    if (test_cases){
        int t;
        cin>>t;
        lf(i, 0, t)
            solve();
    }
    else    
        solve();
}