t=int(input())
lista=[]
for k in range(t):
    inutil=input()
    lista.append([int(i) for i in input().split()])
for t in lista:
    demolidor=True
    b=s=g=i=1
    if len(t) !=1:
        while t[i]==t[i-1]:
            g+=1
            i+=1
        i+=1
        while t[i]==t[i-1]:
            s+=1
            i+=1
        i+=1
        while i<= len(t)//2:
            c=b
            while t[i]==t[i-1]:
                b+=1
                i+=1
            if i==len(t)//2:
                print(g,s,b,sep=" ")
                demolidor=False
                break
            elif i>len(t)//2:
                print(g,s,c,sep=" ")
                demolidor=False
            else:
                i+=1
                if t[i]!=t[i-1]:
                    b+=1

        if demolidor:
            print(0,0,0,sep=" ")
    else:
        print(0,0,0,sep=" ")