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:
#pragma GCC target ("avx2")
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#include <bits/stdc++.h>
#include <math.h>
using namespace std;

void __print(bool x) {cerr << (x ? "true" : "false");}void __print(int x) {cerr << x;} void __print(long x) {cerr << x;} void __print(long long x) {cerr << x;} void __print(unsigned x) {cerr << x;} void __print(unsigned long x) {cerr << x;} void __print(unsigned long long x) {cerr << x;} void __print(float x) {cerr << x;} void __print(double x) {cerr << x;} void __print(long double x) {cerr << x;} void __print(char x) {cerr << '\'' << x << '\'';} void __print(const char *x) {cerr << '"' << x << '"';} void __print(const string &x) {cerr << '"' << x << '"';} template<typename T, typename V> void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';} template<typename T> void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";} void _print() {cerr << "]\n";} template <typename T, typename... V> void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
#ifndef ONLINE_JUDGE
#define D(x...) cerr << "[" << #x << "] = ["; _print(x);
#else
#define D(x...)
#endif

typedef long long int ll; typedef long double ld; typedef pair<ll, ll> pl; typedef vector<ll> vl; typedef vector<vl> vvl; typedef vector<pl> vpl; typedef vector<ld> vld; typedef vector<vld> vvld; typedef vector<bool> vb; typedef vector<string> vs;
#define oset tree<ll, null_type, less<>, rb_tree_tag,tree_order_statistics_node_update>
#define F(i, start, end) for(ll i = (start); i < (end); ++i)
#define FD(i, start, end) for(ll i = (start-1); i >= (end); --i)
#define A(x) (x).begin(), (x).end()
#define G(x) ll x; cin >> x;
ll I(ll &x) { cin >> x; return x; }
#define X first
#define Y second
#define TR(x, v) for (auto &x : v)
#define MULT G(T) while(T--)
template <typename T>
T read(ll n) { T x(n); F(i,0,n) cin >> x[i]; return x; }
#define R(T, x, n) { G(n) T x; F(i,0,n) cin >> }

ll MOD = 998244353; // 1000000007;
pair<ll, ll> dir[4] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
ll inv(ll a, ll b){return 1<a ? b - inv(b%a,a)*b/a : 1;}

#define NN

int main() {
    ios_base::sync_with_stdio(false); cin.tie(nullptr);
    MULT{
        G(n)
        vs s(3);
        vector<ll> cnt1(3);
        F(i,0,3) {
            cin >> s[i];
            TR(x, s[i]) cnt1[i] += x == '1';
        }
        string a, b;
        char more;
        F(i,0,3) F(j,0,3)
            if ((i - j) and (cnt1[i] >= n) == (cnt1[j] >= n)) {
                a = s[i], b = s[j];
                if (cnt1[i] < n) more = '0'; else more = '1';
                if (more == '1' and cnt1[i] > cnt1[j]) swap(a, b);
                if (more == '0' and cnt1[i] < cnt1[j]) swap(a, b);
            }

        vector<ll> chunks;
        ll cur = 0;
        TR(x, a) {
            if (x == more) {
                chunks.push_back(cur);
                cur = 0;
            } else cur++;
        }
        if (cur) chunks.push_back(cur);
        string ans;
        cur = 0;
        TR(x, b) {
            if (x == more and cur < chunks.size()) {
                F(i,0,chunks[cur]) ans += (char)('0' + '1' - more);
                cur++;
            }
            ans += x;
        }
        while (cur < chunks.size()) {
            F(i,0,chunks[cur]) ans += (char)('0' + '1' - more);
            cur++;
        }
        cout << ans << endl;
    };
}