Problem: A bitstring is a string that contains only the characters 0 and 1.

Koyomi Kanou is working hard towards her dream of becoming a writer. To practice, she decided to participate in the Binary Novel Writing Contest. The writing prompt for the contest consists of three bitstrings of length 2n. A valid novel for the contest is a bitstring of length at most 3n that contains at least two of the three given strings as subsequences.

Koyomi has just received the three prompt strings from the contest organizers. Help her write a valid novel for the contest.

A string a is a subsequence of a string b if a can be obtained from b by deletion of several (possibly, zero) characters.

Input

The first line contains a single integer t (1 ≤ t ≤ 10^4) — the number of test cases.

The first line of each test case contains a single integer n (1 ≤ n ≤ 10^5).

Each of the following three lines contains a bitstring of length 2n. It is guaranteed that these three strings are pairwise distinct.

It is guaranteed that the sum of n across all test cases does not exceed 10^5.

Output

For each test case, print a single line containing a bitstring of length at most 3n that has at least two of the given bitstrings as subsequences.

It can be proven that under the constraints of the problem, such a bitstring always exists.

If there are multiple possible answers, you may output any of them.

Example

Input


2
1
00
11
01
3
011001
111010
010001


Output


010
011001010

Note

In the first test case, the bitstrings 00 and 01 are subsequences of the output string: 010 and 010. Note that 11 is not a subsequence of the output string, but this is not required.

In the second test case all three input strings are subsequences of the output string: 011001010, 011001010 and 011001010.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
 
using namespace std;
using i128 = __int128_t;
using u128 = __uint128_t;

//define
#define trav(i,v)   for(auto i: v)
#define rep(i,n)    for(int i=0;i<n;i++)
#define repu(i,k,n) for(int i=k;i<=n;i++)
#define repd(i,k,n) for(int i=k;i>=n;i--)
#define se second
#define fi first
#define pb push_back
#define mp make_pair
#define all(v)  v.begin(), v.end()
#define itn int 
#define sz(x) (ll)x.size()
    
//typedef
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
typedef std::pair<int, int> pii;
typedef std::vector<int> vi;
typedef std::vector< pii > vii;
typedef std::vector< std::vector<int> > vvi;
typedef std::vector< std::vector<long long> > vvl;
typedef std::vector< ll > vll;
typedef std::vector< std::pair < pii, int > > vpp;
 
// const long long MOD = 1000000007;
const long long MOD = 998244353;
const long double PI = 3.141592653589793238;
const long long pi = 31415926;
const long long inf = 1000000000000000000;
const long long small_inf = INT_MAX;
 
ll modpow(ll x, ll n, ll mod = MOD){ ll res=1; while(n>0){ if(n&1) res=res*x%mod; x=x*x%MOD; n>>=1;} return res;}
ll power(ll x, ll n){ ll res=1; while(n>0){ if(n&1) res=res*x; x=x*x; n>>=1; } return res;}

void init(){

}

void find(string s1, string s2, int n, int f=0){
    vector<char> v;
    int x=0;
    rep(i,2*n){
        while(x<2*n && s2[x]=='1'){
            v.pb('1');
            x++;
        }
        if(s1[i]=='0'){
            x++;
        }
        v.pb(s1[i]);
    }
    while(sz(v)<3*n){
        v.pb('1');
    }
    rep(i,3*n){
        if(f){
            if(v[i]=='1')
                cout<<0;
            else
                cout<<1;
        }
        else{
            cout<<v[i];
        }
    }
    cout<<endl;
}

void solve()
{
/*Don't hurry, nothing good comes if you rush*/
    int n;
    cin>>n;
    string s[3];
    cin>>s[0]>>s[1]>>s[2];
    vvi v(3,vi(2,0));
    rep(i,3){
        rep(j,2*n){
            if(s[i][j]=='1')
                v[i][1]++;
            else
                v[i][0]++;
        }
    }
    int cnt=0, a=-1, b=-1, a1=-1, b1=-1;
    rep(i,3){
        if(v[i][0]>=v[i][1]){
            cnt++;
            if(a==-1)
                a=i;
            else
                b=i;
        }
        else{
            if(a1==-1)
                a1=i;
            else
                b1=i;
        }
    }
    if(cnt>1){
        // cout<<a<<" "<<b<<endl;
        if(v[a][0]>v[b][0])
            find(s[a],s[b],n);
        else
            find(s[b],s[a],n);

    }
    else{
        rep(i,2*n){
            if(s[a1][i]=='1')
                s[a1][i]='0';
            else
                s[a1][i]='1';
        }
        rep(i,2*n){
            if(s[b1][i]=='1')
                s[b1][i]='0';
            else
                s[b1][i]='1';
        }
        if(v[a1][1]>v[b1][1])
            find(s[a1],s[b1],n,1);
        else
            find(s[b1],s[a1],n,1);
    }
}

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    int t23 = 1, tt23 = 1; 
    cin>>t23;
    init();
    while(tt23<=t23)
    {
        // cout<<"Case #"<<tt23<<": ";
        solve();
        tt23++;
    }
    cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";
}