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;
#define endl "\n"
#define mst(a,b) memset((a),(b),sizeof(a))
#define rush() int TT;scanf("%d",&TT);for(int TTT=1;TTT<=TT;TTT++)
#define fastio()  ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define forrr(i,x,y) for(int i=x;i<=y;++i)
#define rofff(i,x,y) for(int i=x;i>=y;--i)
#define forr(i,x,y) for(int i=x;i<y;++i)
#define roff(i,x,y) for(int i=x;i>y;--i)
#define lowbit(x) (x&-x)
#define fin(FI) freopen(FI,"r",stdin)
#define fout(FI) freopen(FI,"w",stdout)
#define fi first
#define se second
#define mp make_pair
#define sf scanf
#define pf printf
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef pair<int, int> pii;
typedef pair<ll, int> pli;
typedef pair<ll, ll> pll;
typedef pair<string,int> psi;
const ldb pi = acos((ldb)-1);
void in(initializer_list<int*> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)scanf("%d",*ptr);
}
void in(initializer_list<ll*> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)scanf("%lld",*ptr);
}
void in(initializer_list<db*> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)scanf("%lf",*ptr);
}
void out(initializer_list<int> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)printf("%d ",*ptr);
}
void outln(initializer_list<int> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)printf("%d\n",*ptr);
}
void out(initializer_list<ll> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)printf("%lld ",*ptr);
}
void outln(initializer_list<ll> li) {
    for(auto ptr=li.begin(); ptr!=li.end(); ptr++)printf("%lld\n",*ptr);
}
int in(int &a,int &b,int &c,int &d) {
    return scanf("%d%d%d%d",&a,&b,&c,&d);
}
int in(int &a,int &b,int &c) {
    return scanf("%d%d%d",&a,&b,&c);
}
int in(int &a,int &b) {
    return scanf("%d%d",&a,&b);
}
int in(ll &a,ll &b) {
    return scanf("%lld%lld",&a,&b);
}
int in(ll &a,ll &b,ll &c,ll &d) {
    return scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
}
int in(ll &a,ll &b,ll &c) {
    return scanf("%lld%lld%lld",&a,&b,&c);
}
int in(ll &a) {
    return scanf("%lld",&a);
}
int in(int &a) {
    return scanf("%d",&a);
}
int in(char *s) {
    return scanf("%s",s);
}
int in(char &c) {
    return scanf("%c",&c);
}
void out(int a,bool ln) {
    printf("%d%c",a," \n"[ln]);
}
void out(ll a,bool ln) {
    printf("%lld%c",a," \n"[ln]);
}
void out(db a,int digit,bool ln) {
    printf("%.*f%c",digit,a," \n"[ln]);
}
ll gcd(ll a, ll b) {
    return b?gcd(b,a%b):a;
}
ll lcm(ll a, ll b) {
    return a/gcd(a,b)*b;
}
const int inf = 0x3f3f3f3f;
const db eps = 1e-8;
const int maxn = 5e3+5;
const int maxm = 1e6+5;
const ll mod = 1e9+7;
string a,b,c;
int n,numa,numb,numc;


int main() {
    rush() {
        in(n);
        cin>>a;
        cin>>b;
        cin>>c;
        numa=numb=numc=0;
        forr(i,0,2*n) {
            if(a[i]=='1')
                numa++;
            if(b[i]=='1')
                numb++;
            if(c[i]=='1')
                numc++;
        }
        if(numa>numb) {
            swap(numa,numb);
            swap(a,b);
        }
        if(numb>numc) {
            swap(numc,numb);
            swap(c,b);
        }
        if(numa>numb) {
            swap(numa,numb);
            swap(a,b);
        }
        char tmp='0';
        if(numb>n) {
            swap(a,c);
            tmp='1';
        }
        int i=0,j=0;
        while(i<2*n||j<2*n) {
            while(i<2*n&&a[i]!=tmp){
                cout<<a[i++];
                if(j<2*n&& b[j]!=tmp)
                    j++;
            }
            while(j<2*n&& b[j]!=tmp)
                cout<<b[j++];
            if(i>=2*n&&j>=2*n)
                break;
            cout<<tmp;
            i++,j++;
        }
        cout<<endl;
    }
    return 0;
}