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:
//Praise our lord and saviour qlf9
//DecimalFormat f = new DecimalFormat("##.00");

import java.util.*;
import java.io.*;
import java.math.*;
import java.text.*;
public class A{
public static void main(String[] omkar) throws Exception
{
   BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
   StringTokenizer st = new StringTokenizer(in.readLine());
   StringBuilder sb = new StringBuilder();
   int cases = Integer.parseInt(st.nextToken());
   for(int i = 0; i < cases; i++)
   {
      solve(in, st, sb);
   }  
   System.out.println(sb);
        }
 public static void solve(BufferedReader in, StringTokenizer st, StringBuilder sb) throws Exception
 {
   st = new StringTokenizer(in.readLine());
   int n = Integer.parseInt(st.nextToken());
   int[] s1 = new int[2*n];
   int[] s2 = new int[2*n];
   int[] s3 = new int[2*n];
   int[] count1 = new int[2];
   int[] count2 = new int[2];
   int[] count3 = new int[2];
   String s;
   s = in.readLine();
   for(int i = 0; i < 2*n; i++)
   {
      s1[i] = s.charAt(i)-48;
      count1[s1[i]]++;
   }
   s = in.readLine();
   for(int i = 0; i < 2*n; i++)
   {
      s2[i] = s.charAt(i)-48;
      count2[s2[i]]++;
   }
   s = in.readLine();
   for(int i = 0; i < 2*n; i++)
   {
      s3[i] = s.charAt(i)-48;
      count3[s3[i]]++;
   }
   int[] temp;
   if(count1[0] >= n)
   {
      if(count3[0] < n && count2[0] < n)
      {
         s1 = s3;
         count1 = count3;
      }
      else if(count2[0] < n)
      {
         s2 = s3;
         count2 = count3;
      }
   }
   else
   {
      if(count3[0] > n && count2[0] > n)
      {
         s1 = s3;
         count1 = count3;
      }
      else if(count2[0] > n)
      {
         s2 = s3;
         count2 = count3;
      }
   }
   int num = 0;
   if(count1[0] < n)
   {
      num = 1;
   }
   ArrayList<Integer> ret = new ArrayList<Integer>();
   int ind1 = 0;
   int ind2 = 0;
   while(ind1 != 2*n || ind2 != 2*n)
   {
      if(ind1 == 2*n)
      {
         ret.add(s2[ind2]);
         ind2++;
      }
      else if(ind2 == 2*n)
      {
         ret.add(s1[ind1]);
         ind1++;
      }
      else if(s1[ind1] != num)
      {
         ret.add(s1[ind1]);
         ind1++;
      }
      else if(s2[ind2] != num)
      {
         ret.add(s2[ind2]);
         ind2++;
      }
      else
      {
         ret.add(s1[ind1]);
         ind1++;
         ind2++;
      }
   }
   for(int i = 0; i < ret.size(); i++)
   {
      sb.append(ret.get(i));
   }
   sb.append("\n");
 }
 public static int[] readArr(int N, BufferedReader in, StringTokenizer st) throws Exception
      {
         int[] arr = new int[N];
         st = new StringTokenizer(in.readLine());
         for(int i=0; i < N; i++)
            arr[i] = Integer.parseInt(st.nextToken());
         return arr;
      }


}