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 mp make_pair
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define sz(v) (v).size()
#define all(v) (v).begin(),(v).end()
#define REP(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
#define rep(i,a,b) for(int (i)=(a);(i)<=(b);(i)++)
#define Time (double)clock()/CLOCKS_PER_SEC
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef pair<int,int> pi;
template <class T> void chmax(T &x,T y) {x=x>y?x:y;return;}
template <class T> void chmin(T &x,T y) {x=x<y?x:y;return;}
template <class T> T sqr(T x) {return x*x;}
template <class T> T gcd(T x,T y) {return y==0?x:gcd(y,x%y);}
template <class T> T lcm(T x,T y) {return x/gcd(x,y)*y;}
const int inf=1000000000,mod=1000000007;
const ll infll=1000000000000000000ll,modll=ll(mod);
const db maxdb=db(infll),eps=1e-14,PI=acos(-1.0);
//#define mydef
//#define LOCAL
#ifdef mydef
#define foreach(v,it) for(__typeof((v).begin()) it=(v).begin();it!=(v).end();it++)
#endif
#define debug
#define putnum(x) cout<<#x<<": "<<x<<endl
#define putvec(v) cout<<#v<<": ";REP(i,0,sz(v)) cout<<v[i]<<" ";cout<<endl
template <class T> inline void read(T &x){
	T w=1;x=0;char c=getchar();
	while(c<'0'||c>'9') {if(c=='-')w=-1;c=getchar();}
	while(c>='0'&&c<='9') {x=(x<<3)+(x<<1)+(c&15);c=getchar();}
	x*=w;
}
template <class T> inline void write(T x) {
	if(x<0) putchar('-'),x=~x+1;
	if(x) write(x/10),putchar(x%10+'0');
}

int cnt(string str) {
	int ret=0;
	for(int i=0;i<sz(str);i++) {
		ret+=str[i]=='0';
	}
	return ret;
}

void choose(string st1,string st2,int more) {	
	int i1=0,i2=0;
	while(1) {
		while(i1<sz(st1)&&st1[i1]!=char('0'+more)) {
			cout<<st1[i1];
			i1++;
		}
		while(i2<sz(st2)&&st2[i2]!=char('0'+more)) {
			cout<<st2[i2];
			i2++;
		}
		if(i1<sz(st1)&&i2<sz(st1)) {
			cout<<more;
			i1++,i2++;
		} else if(i1<sz(st1)) {
			cout<<more;
			i1++;
		} else if(i2<sz(st2)) {
			cout<<more;
			i2++;
		}
		if(i1>=sz(st1)&&i2>=sz(st2)) break;
	}
	cout<<endl;
}

void solve() {
	string st1,st2,st3;
	int n;
	cin>>n;
	cin>>st1>>st2>>st3;
	int z1=cnt(st1),z2=cnt(st2),z3=cnt(st3);
	if(z1<n&&z2<n)
		choose(st1,st2,1);
	else if(z1<n&&z3<n)
		choose(st1,st3,1);
	else if(z2<n&&z3<n)
		choose(st2,st3,1);
	else if(z1>=n&&z2>=n)
		choose(st1,st2,0);
	else if(z2>=n&&z3>=n)
		choose(st2,st3,0);
	else
		choose(st1,st3,0);
	return;
}

int main() {
	int T;
	cin>>T;
	while(T--) solve();
	return 0;
}