human
Polycarp had an array a of 3 positive integers. He wrote out the sums of all non-empty subsequences of this array, sorted them in non-decreasing order, and got an array b of 7 integers.

For example, if a = \{1, 4, 3\}, then Polycarp wrote out 1, 4, 3, 1 + 4 = 5, 1 + 3 = 4, 4 + 3 = 7, 1 + 4 + 3 = 8. After sorting, he got an array b = \{1, 3, 4, 4, 5, 7, 8\}.

Unfortunately, Polycarp lost the array a. He only has the array b left. Help him to restore the array a.

Input

The first line contains one integer t (1 ≤ t ≤ 5000) — the number of test cases.

Each test case consists of one line which contains 7 integers b_1, b_2, ..., b_7 (1 ≤ b_i ≤ 10^9.
b_i ≤ b_{i+1}). 

Additional constraint on the input: there exists at least one array a which yields this array b as described in the statement.

Output

For each test case, print 3 integers — a_1, a_2 and a_3. If there can be several answers, print any of them.

Example

Input

5
1 3 4 4 5 7 8
1 2 3 4 5 6 7
300000000 300000000 300000000 600000000 600000000 600000000 900000000
1 1 2 999999998 999999999 999999999 1000000000
1 2 2 3 3 4 5

Output

1 4 3
4 1 2
300000000 300000000 300000000
999999998 1 1
1 2 2

Note

The subsequence of the array a is a sequence that can be obtained from a by removing zero or more of its elements.

Two subsequences are considered different if index sets of elements included in them are different. That is, the values of the elements don't matter in the comparison of subsequences. In particular, any array of length 3 has exactly 7 different non-empty subsequences.

What is a Python code to print 3 integers — a_1, a_2 and a_3?
assistant
#Here is Python code to print 3 integers — a_1, a_2 and a_3.

import os
import sys
from io import BytesIO, IOBase
from collections import Counter
from collections import OrderedDict
from collections import defaultdict
import bisect
import math
from sys import setrecursionlimit

def read():
    sys.stdin = open('input.txt', 'r')
    sys.stdout = open('output.txt', 'w')

abc = 'abcdefghijklmnopqrstuvwxyz'
abd = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12,
       'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod = 1000000007

def gcd(a, b):
    if a == 0:
        return b
    return gcd(b % a, a)

def fre_count(mylist):
    return Counter(mylist)

def lcm(a, b):
    return (a / gcd(a, b)) * b

def main():
    #read()
    # setrecursionlimit(10**6)
    t = int(input())
    for _ in range(t):
        #n = int(input())
        # l,r=map(int,input().split())
        arr = [int(x) for x in input().split()]
        # arr=[int(x) for x in input()]
        # grid=[[int(x) for x in input().split()] for x in range(n)]
        # arr=list(input())
        set1=set(arr)
        arr.sort()
        one=arr[0]
        two=arr[1]
        three=None
        arr.remove(one+two)
        for i in range(2,len(arr)):
            # if arr[i] == one or arr[i] == two:
            #     continue
            flag=True
            set2=arr.copy()
            #print(set2,arr[i],one,two)
            if arr[i]+one in set2:
                set2.remove(arr[i]+one)
            else:
                flag=False
            if arr[i]+two in set2:
                set2.remove(arr[i]+two)
            else:
                flag=False
            #print(set2,arr[i]+one,two+arr[i])
            if flag:
                three=arr[i]
                break
        print(one,two,three)

BUFSIZE = 8192

class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r"...