t=int(input())
while t>0:
    n=int(input())
    w=input().split()
    if n<4:
        print("0",end=" ")
        print("0", end=" ")
        print("0")
    else:
        num=[]
        co=n//2
        f=0
        comp=int(w[co])
        for i in w:
            if int(i)>comp:
                num.append(int(i))
                f+=1
        l1=num[0]
        n1=num.count(l1)
        while l1 in num:
            num.remove(l1)
        l1=num[0]
        n2=num.count(l1)
        while l1 in num:
            num.remove(l1)
        while n2 < n1:
            l1=num[0]
            n3=num.count(l1)
            n2+=n3
        n4=f-(n1+n2)
        if n4>n1:
            print(n1,end=" ")
            print(n2,end=" ")
            print(n4)
        else:
            print("0",end=" ")
            print("0",end=" ")
            print("0")
    t-=1