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 rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef long long ll;
typedef double db;
typedef vector<int> VI;
typedef pair<int,int> PII;
typedef pair<long long,int> PLI;
typedef pair<long long,long long> PLL;
const ll mod=1000000007;
//mt19937 mrand(random_device{}()); 
//int rnd(int x) { return mrand() % x;}
//__builtin_popcount(n)
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}

char s[3][200066];
int n;
char ans[400066];
int one[3];

int cal(int p,int q)
{
	int ret=0;
	for(int i=1;i<=2*n;i++)
		if(s[p][i]==s[q][i])ret++;
	return ret;
}

int main()
{
	int _;
	scanf("%d",&_);
	while(_--)
	{
		scanf("%d",&n);
		for(int i=0;i<3;i++)
		{
			scanf("%s",s[i]+1);	
			one[i]=0;
			for(int j=1;j<=2*n;j++)
				if(s[i][j]=='1')one[i]++;
		}
		int cnt=0;
		for(int i=0;i<3;i++)
			if(one[i]>=n)cnt++;
		int tot=0;
		if(cnt>=2)
		{
			int p=-1,q=-1;
			for(int i=0;i<3;i++)
			{
				if(one[i]>=n)
				{
					if(p>=0)q=i;
					else p=i;
				}
			}
			if(one[p]<one[q])swap(p,q);
			int y=1;
			//printf("%d %d__\n",p,q);
			
			for(int i=1;i<=2*n;i++)
			{
				
				if(s[p][i]=='1')
				{
					while(y<=2*n&&s[q][y]=='0')
					{
						++y;
						ans[++tot]='0';
					}
					y++;
				}
				ans[++tot]=s[p][i];
			}
			while(y<=2*n)
			{
				++y;
				ans[++tot]='0';
			}
		}
		else
		{
			int p=-1,q=-1;
			for(int i=0;i<3;i++)
			{
				if(one[i]<=n)
				{
					if(p>=0)q=i;
					else p=i;
				}
			}
			if(one[p]>one[q])swap(p,q);
			int y=1;
			
			for(int i=1;i<=2*n;i++)
			{				
				if(s[p][i]=='0')
				{
					while(y<=2*n&&s[q][y]=='1')
					{
						++y;
						ans[++tot]='1';
					}
					++y;
				}
				ans[++tot]=s[p][i];
			}
			while(y<=2*n)
			{
				++y;
				ans[++tot]='1';
			}
		}
		
		for(int i=1;i<=tot;i++)putchar(ans[i]);puts("");	
	}
	return 0;
}




/*
1
1
00
11
01

1
3
000000
111100
101011

1
3
111010
111001
010001





*/