if __name__ == "__main__":
    t=int(input())
    for i in range(t):
        n=int(input())
        p=list(map(int,input().split()))
        if n<=4:
            print('0 0 0')
            continue
        cur=n//2-1
        while p[cur]==p[cur+1]:
            cur-=1
            if cur<=3:
                break
        if cur<=3:
            print('0 0 0')
            continue
        d={}
        for j in range(0,cur+1):
            if p[j] in d:
                d[p[j]]+=1
            else:
                d[p[j]]=1
        a=list(d.keys())
        a.sort(reverse=True)
        if d[a[0]]<(cur+1)/3:
            count=0
            g=d[a[0]]
            s=0
            for x in range(1,len(a)):
                if count>g:
                    s=count
                    break
                count+=d[a[x]]
            b=cur+1-g-s
            if g<b:
                print(g,end=' ')
                print(s,end=' ')
                print(b)
            else:
                print('0 0 0')
        else:
            print('0 0 0')


			    		  	  			   		  	 	  		