T=int(input())
for t in range(0,T):
    n=int(input())
    P=list(map(int, input().split()))
    if n<=5:
        print(0,0,0)
    else:
        D=[1]
        for i in range(1,n):
            if P[i]==P[i-1]:
                D[-1]+=1
            else:
                D.append(1)
        M=[]
        aw=0
        flag=0
        i=0
        
        while(flag==0):
            temp=D[i]
            M.append(temp)
            aw+=temp
            i+=1
            if (aw+D[i])>n//2:
                flag=1
        g=0
        s=0
        b=0
        g+=M[0]
        print(M)
        
        for i in range(1,len(M)):
            if s<=g:
                s+=M[i]
            else:
                b+=M[i]
        print(g, s, b)
            
            
            
