t = int(input())
for i in range(0,t):
    n = int(input()) 
  
    a = list(map(int,input().split())) 
  
    print(a) 
    sum = n//2
    if sum<3:
        print("0 0 0")
    else:
        g=0
        b=0
        s=0
        max = a[0]
        i=0
        while i<=sum: 
            if a[i]==max:
                g=g+1
            else:
                max=a[i]
                if a[i]==max or b<g:
                    s=s+1
                else:
                    b=b+1 
            i=i+1
        if g==0 or b==0 or s==0:
            print("0 0 0")
        else:
            print(g-1,s,b)