for t in range(int(input())):
    n=int(input())
    a=list(map(int,input().split()))
    x,y,z=0,0,0
    flag=0
    i=0
    while(i<n-1):
        if(flag==0 and a[i]!=a[i+1]):
            x=i
            flag=1
            i+=1
        elif(flag==0 and a[i]==a[i+1]):
            i+=1
        if(flag==1 and a[i]!=a[i+1]):
            y=i
            flag=2
            i+=1
        elif(flag==1 and a[i]==a[i+1]):
            i+=1
        if(flag==2):
            while(i<n-1 and a[i]==a[i+1]):
                i+=1
            if(i>(n-1)//2):
                break
            else:
                z=i
            i+=1
    if(z<=y):
        print(0,0,0)
    else:
        print(x+1,y-x,z-y)