from __future__ import print_function,division
import sys
le=sys.__stdin__.read().split("\n")[::-1]
af=[]
def f():
    n=int(le.pop())
    L=list(map(int,le.pop().split()))
    l=[1]
    for k in range(1,n):
        if L[k]==L[k-1]:
            l[-1]+=1
        else:
            l.append(1)
    l=l[::-1]
    g=l.pop()
    def p():
        af.append("0 0 0")
    s=0
    while s<=g:
        if l:
            s+=l.pop()
        else:
            p()
            return None
    b=0
    while b<=g:
        if l:
            b+=l.pop()
        else:
            p()
            return None
    if 2*(s+b+g)>n:
        p()
        return None
    while 2*(s+b+g)<=n:
        r=l.pop()
        b+=r
    b-=r
    af.append(str(g)+" "+str(s)+" "+str(b))


for k in range(int(le.pop())):
    f()
print("\n".join(af))
