for _ in xrange(input()):
    n=input()
    p=map(int,raw_input().split())
    l=[]
    c=1
    for i in range(1,n):
        if p[i]!=p[i-1]:
            l.append(c)
            c=0
        c+=1
    l.append(c)
    r=[]
    tot=0
    m=n/2
    for i in l:
        tot+=i
        if tot>m:
            tot-=i
            break
        r.append(i)
    if len(r)<3:
        print 0,0,0
        continue
    tm=sum(r)
    gd=r[0]
    if gd>=2*(tm-gd):
        print 0,0,0
        continue
    si=r[1]
    br=tm-gd-si
    print gd,si,br




