t= int(input())
for _ in range(t):
    n = int(input())
    l = list(map(int,input().split()))
    arr = [0]*(10**6+1)
    for i in l:
        arr[i] +=1
    S = n
    l = list(set(l))
    l.sort()
    nee = n//2
    tip = -1
    for i in range(len(l)-3):
        S -= arr[l[i]]
        if(S<=nee):
            tip = i
            break
        
    if(tip==-1):
        print(0,0,0)
    else:
        a = arr[l[tip+1]]
        b= arr[l[tip+2]]
        c= S-a-b
        print(c,b,a)

