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.io.*;
import java.math.BigInteger;
import java.util.*;
 
public class Solution extends PrintWriter {

    
    private void solve(){
        int T = sc.nextInt();
        for(int tc = 1; tc <= T; tc++){
            test_case();
        }
        
    }
    
    void test_case(){
        int n = sc.nextInt();
        String[] s = new String[] {sc.nextString(), sc.nextString(), sc.nextString()};
        
        int[][] ones = new int[3][2];
        for(int i = 0; i < 3; i++) {
            ones[i][1] = i;
            for(int j = 0; j < 2*n; j++) {
                ones[i][0] += s[i].charAt(j) - '0';
            }
        }
        
        Arrays.sort(ones, Comparator.comparing(arr -> arr[0]));
        
        int digit = 0 ;
        if(ones[1][0] > n) digit = 1;

        StringBuilder ans = new StringBuilder();
        int a = ones[0][1];
        int b = ones[1][1];
        if(digit == 1) {
            a = ones[1][1];
            b = ones[2][1];
        }

        for(int i = 0, j = 0; i < 2*n || j < 2* n; ) {
            int cnta = 0;
            int cntb = 0;
            while(i < 2*n && s[a].charAt(i) - '0' != digit) {
                i++;
                cnta++;
            }
            while(j < 2*n && s[b].charAt(j) - '0' != digit) {
                j++;
                cntb++;
            }
            while(cnta > 0 || cntb > 0) {
                ans.append(1-digit);
                cnta--;
                cntb--;
            }
            boolean add = false;
            if(i < 2*n && s[a].charAt(i) - '0' == digit ) {
                add = true;                   
                i++;
            }
            if(j < 2*n && s[b].charAt(j) - '0' == digit ) {
                add = true;                   
                j++;
            }
            if(add) ans.append(digit);
        }
        println(ans.toString());
    }
    
//  Solution() throws FileNotFoundException { super(new File("test_output.txt")); }
//  InputReader sc = new InputReader(new FileInputStream("ts3_input.txt"));
  Solution() { super(System.out); }
  InputReader sc = new InputReader(System.in);
  static class InputReader {
      InputReader(InputStream in) { this.in = in; } InputStream in;
      
      private byte[] buf = new byte[16384];
      private int    curChar;
      private int    numChars;
      
 
      public int read() {
          if (numChars == -1)
              throw new InputMismatchException();
          if (curChar >= numChars) {
              curChar = 0;
              try {
                  numChars = in.read(buf);
              } catch (IOException e) {
                  throw new InputMismatchException();
              }
              if (numChars <= 0)
                  return -1;
          }
          return buf[curChar++];
      }
 
      public String nextLine() {
          int c = read();
          while (isSpaceChar(c))
              c = read();
          StringBuilder res = new StringBuilder();
          do {
              res.appendCodePoint(c);
              c = read();
          } while (!isEndOfLine(c));
          return res.toString();
      }
 
      public String nextString() {
          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 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 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;
      }
 
      private boolean isSpaceChar(int c) {
          return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
      }
 
      private boolean isEndOfLine(int c) {
          return c == '\n' || c == '\r' || c == -1;
      }
  }
 
    public static void main(String[] $) {
        new Thread(null, new Runnable() {
            public void run() {
                long start = System.nanoTime();
                try {Solution solution = new Solution(); solution.solve(); solution.flush();} 
                catch (Exception e) {e.printStackTrace(); System.exit(1);}
                System.err.println((System.nanoTime()-start)/1E9);
            }
        }, "1", 1 << 27).start();
 
    }
}