t=int(input())
for i in range(t):
    n=int(input())
    num=input(" ")
    a=[int(k) for k in num.split()]
    g=1
    while g<n and a[g]==a[g-1]:g+=1
    s=2*g+1
    while s<n and a[s]==a[s-1]:s+=1
    b=int(n/2)
    while b>0 and a[b]==a[b-1]:b-=1
    if b-s>g: print(g,s-g,b-s)
    else: print("0 0 0")


