for _ in range(int(input())):
    no = int(input())
    lst = list(map(int,input().split()))
    lst = lst[:len(lst)//2]
    dic = {}
    for i in lst:
        dic[i] = dic.get(i,0)+1
    new = list(set(lst))
    new.sort(reverse=True)
    #print(new,dic)
    if len(new)<3:
        print(0,0,0)
    else:
        g = dic[new[0]]
        s = dic[new[1]]
        i = 2
        l = len(new)
        while i<l:
            if s>g:
                break
            else:
                s = s+ dic[new[i]]
                i+=1
        b = dic[new[i]] 
        i+=1
        while i<l:
            b = b+ dic[new[i]]
            i+=1
        print(g,s,b)    
        
    
