import sys
if sys.subversion[0] == "PyPy":
    import io, atexit
    sys.stdout = io.BytesIO()
    atexit.register(lambda: sys.__stdout__.write(sys.stdout.getvalue()))
    
    sys.stdin = io.BytesIO(sys.stdin.read())
    input = lambda: sys.stdin.readline().rstrip()

RS = raw_input
RI = lambda x=int: map(x,RS().split())
RN = lambda x=int: x(RS())
''' ...................................................................... '''

for _ in xrange(RN()):
    n = RN()
    arr = RI()
    s = b = 0

    # Gold rush
    i=1
    while i<n and arr[i]==arr[i-1]:
        i+=1
    g = i

    # Silver Rush
    while g>=s and i<n:
        t=1
        i+=1
        while i<n and arr[i]==arr[i-1]:
            i+=1
            t+=1
        s+=t

    # Bronze Rush
    while g+s+b < n/2 and i<n:
        t=1
        i+=1
        while i<n and arr[i]==arr[i-1]:
            i+=1
            t+=1

        if (g+s+b+t)>n/2: break
        b+=t

    if 0<g<min(s,b) and g+s+b<=n/2:
        print g,s,b
    else: print 0,0,0
    



            
        
        
        
        
