from collections import Counter
from sys import stdin
raw_input = stdin.readline

for t in xrange(input()):
    n=input()
    n1=n
    n/=2
    
    l=map(int,raw_input().split())
    if n<=3:
        print 0,0,0
        continue
    g,s,b=0,0,0
    i=n-1
    while i<n1-1 and l[i]==l[i+1]:
        i+=1
    if i!=n-1:
        while n>=0 and l[n-1]==l[n-2]:
            n-=1
        n-=1
    i=0
    g=1
    i+=1
    while i<n and l[i]==l[i-1]:
        g+=1
        i+=1
    s=1
    i+=1
    while i<n and (l[i]==l[i-1] or g>=s):
        s+=1
        i+=1
    b=n-g-s
    if g>=s or g>=b or not b or not g or not s:
        print 0,0,0
    else:
        print g,s,b
    
            
