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 JAVA):

Solution:

import java.util.*;
import java.io.*;
import java.lang.*;
public class Main{

    public static void main(String args[]){
        InputReader in=new InputReader(System.in);
        TASK solver = new TASK();
        int t=1;
        t = in.nextInt();
        for(int i=1;i<=t;i++)
        {
            solver.solve(in,i);
        }
    }
    static class TASK {
        static int mod = 1000000007;
        static boolean check(char[][] s,int ii,int jj,int n)
        {
            int c0=0,c1=0,d0=0,d1=0;
            for(int i=0;i<2*n;i++)
            {
                if(s[ii][i]=='0')
                    c0++;
                else
                    c1++;
                if(s[jj][i]=='0')
                    d0++;
                else
                    d1++;
            }
            if(c0>=n && d0>=n)
            {
                StringBuilder sb = new StringBuilder();
                int i=0,j=0;
                while (i<2*n && j<2*n)
                {
                    if(s[jj][j]==s[ii][i])
                    {
                        sb.append(s[ii][i]);
                        i++;
                        j++;
                    }
                    else if(s[jj][j]=='1')
                    {
                        sb.append(1);
                        j++;
                    }
                    else if(s[ii][i]=='1')
                    {
                        sb.append(1);
                        i++;
                    }

                }
                while (j<2*n)
                {
                    sb.append(s[jj][j]);
                    j++;
                }
                while (i<2*n)
                {
                    sb.append(s[ii][i]);
                    i++;
                }
                System.out.println(sb);
                return true;
            }
            else if(c1>=n && d1>=n)
            {
                StringBuilder sb = new StringBuilder();
                int i=0,j=0;
                while (i<2*n && j<2*n)
                {
                    if(s[jj][j]==s[ii][i])
                    {
                        sb.append(s[ii][i]);
                        i++;
                        j++;
                    }
                    else if(s[jj][j]=='0')
                    {
                        sb.append(0);
                        j++;
                    }
                    else if(s[ii][i]=='0')
                    {
                        sb.append(0);
                        i++;
                    }

                }
                while (j<2*n)
                {
                    sb.append(s[jj][j]);
                    j++;
                }
                while (i<2*n)
                {
                    sb.append(s[ii][i]);
                    i++;
                }
                System.out.println(sb);
                return true;
            }
            return false;
        }
        void solve(InputReader in, int testNumber) {
            int n = in.nextInt();
            char[][] s = new char[3][2*n];
            for(int i=0;i<3;i++)
                s[i]=in.next().toCharArray();
            for(int i=0;i<3;i++)
            {
                for(int j=i+1;j<3;j++)
                {
                    if(check(s,i,j,n))
                    {
                        return;
                    }
                }
            }









        }
    }

    static class pair{
        int l ;
        int m;
        int r;
        pair(int l,int m,int r)
        {
            this.l=l;
            this.m=m;
            this.r=r;
        }
    }

    static class Maths {
        static long gcd(long a, long b) {
            if (a == 0)
                return b;
            return gcd(b % a, a);
        }
        public static long lcm(long a, long b) {
            return (a * b) / gcd(a, b);
        }
        public static long factorial(int n) {
            long fact = 1;
            for (int i = 1; i <= n; i++) {
                fact *= i;
            }
            return fact;
        }
    }
    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private SpaceCharFilter filter;
        public InputReader(InputStream stream) {
            this.stream = stream;
        }
        public int read() {
            if (numChars == -1)
                throw new InputMismatchException();
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0)
                    return -1;
            }
            return buf[curChar++];
        }
        public String nextLine() {
            BufferedReader br = new BufferedReader(new
                    InputStreamReader(System.in));
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
        public int nextInt() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            while (!isSpaceChar(c));
            return res * sgn;
        }
        public long nextLong() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            long res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            while (!isSpaceChar(c));
            return res * sgn;
        }
        public double nextDouble() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            double res = 0;
            while (!isSpaceChar(c) && c != '.') {
                if (c == 'e' || c == 'E')
                    return res * Math.pow(10, nextInt());
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            if (c == '.') {
                c = read();
                double m = 1;
                while (!isSpaceChar(c)) {
                    if (c == 'e' || c == 'E')
                        return res * Math.pow(10, nextInt());
                    if (c < '0' || c > '9')
                        throw new InputMismatchException();
                    m /= 10;
                    res += (c - '0') * m;
                    c = read();
                }
            }
            return res * sgn;
        }
        public String readString() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            }
            while (!isSpaceChar(c));
            return res.toString();
        }
        public boolean isSpaceChar(int c) {
            if (filter != null)
                return filter.isSpaceChar(c);
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c
                    == -1;
        }
        public String next() {
            return readString();
        }
        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);
        }
    }
}