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:

// Problem : A. Binary Literature
// Contest : Codeforces - Codeforces Round #715 (Div. 1)
// URL : https://codeforces.com/contest/1508/problem/A
// Memory Limit : 256 MB
// Time Limit : 1000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>
#define int long long
#define IOS std::ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL);
#define pb push_back
#define mod 1000000007 //998244353
#define lld long double
#define pii pair<int, int>
#define ff first
#define ss second
#define all(x) (x).begin(), (x).end()
#define rep(i,x,y) for(int i=x; i<y; i++)
#define fill(a,b) memset(a, b, sizeof(a))
#define vi vector<int>
#define setbits(x) __builtin_popcountll(x)
#define w(x)  int x; cin>>x; while(x--)
using namespace std;
const long long N=200005, INF=2000000000000000000;

/*------------- Modular exponentiation -------------*/
int power(int a, int b, int p)
    {
        if(a==0)
        return 0;
        int res=1;
        a%=p;
        while(b>0)
        {
            if(b&1)
            res=(res*a)%p;
            b>>=1;
            a=(a*a)%p;
        }
        return res;
    }
	

/*------------- Sieve --------------*/	
vector <int> prime;
bool is_composite[N];

void sieve (int n) {
	fill (is_composite, false);
	for (int i = 2; i < n; ++i) {
		if (!is_composite[i]) prime.push_back (i);
		for (int j = 0; j < prime.size () && i * prime[j] < n; ++j) {
			is_composite[i * prime[j]] = true;
			if (i % prime[j] == 0) break;
		}
	}
}


/*------------ Utitlity function ---------------*/
void print(bool n){
    if(n){
        cout<<"YES";
    }else{
        cout<<"NO";
    }
}


string solve(string a,string b){
	int az=0, ao =0, bz=0, bo=0;
	int n = a.size();
	for(int i=0;i<n;i++){
		if(a[i]=='0') az++;
		if(b[i]=='0') bz++;
	}
	ao = n - az;
	bo = n - bz;
	
	int vz = min(az,bz);
	int vo = min(ao, bo);
	
	char cp = '0';
	char ot = '1';
	if(vo>vz){
		cp='1';
		ot='0';
	}
	
	string s;
	int ona=0, onb=0;
	while(ona<n&&onb<n){
		if(a[ona]!=cp||b[onb]!=cp){
			s+=ot;
			if(a[ona]!=cp) ona++;
			if(b[onb]!=cp) onb++;
			continue;
		}
		
		s+=cp;
		ona++;
		onb++;
	}
	
	while(ona<n){
		s+=a[ona];
		ona++;
	}
	
	while(onb<n){
		s+=b[onb];
		onb++;
	}
	
	return s;
	
}


int32_t main()
{
    IOS;
    w(T){
    	int n;
    	cin>>n;
    	string a,b,c;
    	cin>>a>>b>>c;
    	string s[6];
    	s[0] = solve(a,b);
    	s[1] = solve(b,c);
    	s[2] = solve(a,c);
    	s[3] = solve(b,a);
    	s[4] = solve(c,b);
    	s[5] = solve(c,a);
    	for(int i=0;i<6;i++){
    		if(s[i].size()<=3*n){
    			cout<<s[i]<<"\n";
    			break;
    		}
    	}
    }
}

// Written by abhidot