Problem: Mahesh got a beautiful array named A as a birthday gift from his beautiful girlfriend Namratha. There are N positive integers in that array. Mahesh loved the array so much that he started to spend a lot of time on it everyday. One day, he wrote down all possible subsets of the array. Then for each subset, he calculated the sum of elements in that subset and wrote it down on a paper. Unfortunately, Mahesh lost the beautiful array :(. He still has the paper on which he wrote all subset sums. Your task is to rebuild beautiful array A and help the couple stay happy :)


Input
The first line of the input contains an integer T denoting the number of test cases.
First line of each test case contains one integer N, the number of elements in A.
Second line of each test case contains 2^N integers, the values written on paper

Output
For each test case, output one line with N space separated integers in non-decreasing order.

Constraints

1 ≤ T ≤ 50
1 ≤ N ≤ 15
0 ≤ Values on paper ≤ 10^9
All input values are valid. A solution always exists


Example
Input
2
1
0 10
2
0 1 1 2

Output
10
1 1

Explanation
Test case #2
For the array [1,1], possible subsets are {}, {1}, {1}, {1,1}, respective sums are 0, 1, 1, 2.

Solution (in PYTHON):

Solution:
import heapq
def func(pq,sum,res,n,flag):
    if n==0:
        if flag:
            heapq.heappush(pq, sum)
        return
    func(pq, sum+res[n-1], res, n-1, True)
    func(pq, sum, res, n-1, flag)
    


t=int(raw_input())
for i in range(t):
    res=[]
    pq=[]
    
    n=int(raw_input())
    x=raw_input()
    ss=map(int,x.split())#ss-->subset sum list
    ss.sort()
    if n==1:
        res.append(ss[1])
    elif n==2:
        res.append(ss[1])
        res.append(ss[2])
    else:
        res.append(ss[1])
        res.append(ss[2])
        heapq.heappush(pq,ss[1]+ss[2])
        for x in range(3,len(ss)):
            if len(pq)>0 and ss[x]==pq[0]:
                heapq.heappop(pq)
            else:
                func(pq, ss[x], res, len(res), False)
                res.append(ss[x])
                   
                
                
            if len(res)==n:
                break
    for j in range(n):
               print res[j],
    print ''