t=int(input())
for tt in range(t):
    n=int(input())
    arr=list(map(int,input().split()))
    arr.sort(reverse=True)
    cc=0
    g=1
    check=arr[0]
    index=0
    for i in range(1,n//2):
        if check==arr[i]:
            g+=1 
        else:
            index=i 
            break
    s=0
    lol=index
    check=arr[index]
    for i in range(index,n//2):
        if check==arr[i]:
            s+=1 
        else:
            if g>=s:
                s+=1 
            else:
                lol=i 
                break
    b=(n//2)-(s+g)
    if b<=0 or s<=0 or g<=0:
        print("0 0 0")
    else:
        print(g,s,b)
    