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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Solution {

    public static void main(String[] args) throws IOException {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int numberOfTestCases = Integer.parseInt(br.readLine());

        for( int testCaseNumber = 1; testCaseNumber <= numberOfTestCases; testCaseNumber++ ) {
            
            
            /*
                3
                011001
                111010
                010001
             */
//        String[] splitLine;
              
            int n = Integer.parseInt( br.readLine() );
            String s1 = br.readLine();
            String s2 = br.readLine();
            String s3 = br.readLine();

            
//            if( numberOfTestCases < 10 ) {
//                process2( n, s1, s2, s3 );
//            }
//            else if( testCaseNumber == 77 ) {
//                System.out.println( "!" + s1 + " " + s2 + " " + s3 );
//            }

            process2( n, s1, s2, s3 );
        }
//long startTime = System.currentTimeMillis();
//System.out.println("C99: " + (System.currentTimeMillis() - startTime));
        br.close();
    }
    
    private static void process2(int n, String s1, String s2, String s3) {
        
        int[][] zerosAndOnes = new int[3][2];
        for( int i = 0; i < 2 * n; i++ ) {
            if( s1.charAt( i ) == '0' ) {
                zerosAndOnes[0][0]++;
            }
            else {
                zerosAndOnes[0][1]++;
            }
            if( s2.charAt( i ) == '0' ) {
                zerosAndOnes[1][0]++;
            }
            else {
                zerosAndOnes[1][1]++;
            }
            if( s3.charAt( i ) == '0' ) {
                zerosAndOnes[2][0]++;
            }
            else {
                zerosAndOnes[2][1]++;
            }
        }
        
        
        String answer = null;
        
        if( zerosAndOnes[0][0] >= n && zerosAndOnes[1][0] >= n ) {
            answer = buildSequence( s1, s2, '0' );
        }
        else if( zerosAndOnes[0][1] >= n && zerosAndOnes[1][1] >= n ) {
            answer = buildSequence( s1, s2, '1' );
        }
        else if( zerosAndOnes[0][0] >= n && zerosAndOnes[2][0] >= n ) {
            answer = buildSequence( s1, s3, '0' );
        }
        else if( zerosAndOnes[0][1] >= n && zerosAndOnes[2][1] >= n ) {
            answer = buildSequence( s1, s3, '1' );
        }
        else if( zerosAndOnes[1][0] >= n && zerosAndOnes[2][0] >= n ) {
            answer = buildSequence( s2, s3, '0' );
        }
        else if( zerosAndOnes[1][1] >= n && zerosAndOnes[2][1] >= n ) {
            answer = buildSequence( s2, s3, '1' );
        }
        else {
            System.out.println( "!" + s1 + " " + s2 + " " + s3 );
        }
        
        System.out.println( answer );
    }
    
    private static String buildSequence( String s1, String s2, char priorityChar ) {
        
        //  Determine which string is the "topheavy" string. The non-priority character "heavy" string goes first.
        {
            int c1 = 0;
            int c2 = 0;
            for( int i = 0; i < s1.length(); i++ ) {
                if( s1.charAt(i) == priorityChar ) {
                    c1++;
                }
                if( s2.charAt(i) == priorityChar ) {
                    c2++;
                }
            }
            
            if( c1 > c2 ) {
                String t = s1;
                s1 = s2;
                s2 = t;
            }
        }
        
        
        StringBuilder sb = new StringBuilder();
        
        int i = 0;
        int j = 0;
        
        while( i < s1.length() && j < s2.length() ) {

            if( s1.charAt(i) == s2.charAt(j) ) {
                sb.append( s1.charAt(i) );
                i++;
                j++;
            }
            //  Take the non-priority character.
            else if( s1.charAt(i) != priorityChar ) {
                sb.append( s1.charAt(i) );
                i++;
            }
            else {
                sb.append( s2.charAt(j) );
                j++;
            }
//            else if( i == j && s2.charAt(j) == priorityChar ) {
//                sb.append( s2.charAt(j) );
//                j++;
//            }

        }
        
        while( i < s1.length() ) {
            sb.append( s1.charAt( i ) );
            i++;
        }
        
        while( j < s2.length() ) {
            sb.append( s2.charAt( j ) );
            j++;
        }
        
        
        return sb.toString();
    }
}