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