import time
from collections import deque 

def inpt():
    return int(input())
def inpl():
    return list(map(int,input().split()))
def inpm():
    return map(int,input().split())
    
def solve():
    n = inpt()
    l = inpl()
    g,s,b=0,0,0
    mid = n//2
    d=[None]*(mid+1)
    i=0
    d[0]="g"
    while i<mid and l[i]==l[i+1]:
        d[i+1]="g"
        i+=1
    if mid<3*i+6:
        print(0,0,0)
        return
    
    j=2*i+2
    while j<mid and l[j]==l[j+1]:
        j+=1
    while l[mid]==l[mid-1]:
        mid-=1
    else:
        print(i+1,j-i,mid-j-1)
    
    
def main():
    #start_time=time.time()
    m=10**9+7
    t = int(input())
    while(t):
        t-=1
        solve()
        
    
    #print('Time Elapsed = ',time.time()-start_time," seconds")
if __name__ == "__main__":
    main()
    