for _ in range(int(input())):
    n=int(input())//2
    ar=list(map(int,input().split()))
    mcount=0
    for i in range(n):
        if(ar[i]==ar[0]):
            mcount+=1
        else:
            break
    ind=0
    if(ar[n-1]!=ar[n]):
        ind=n
    else:
        for k in range(n):
            if(ar[k]==ar[n-1]):
                ind=k
                break
    if(3*mcount+2>ind):
        print(0,0,0)
    else:
        print(mcount,mcount+1,(ind-(2*mcount+1)))