t = int(input())
for _ in range(t):
    t = int(input())
    a = [int(x) for x in input().split()]
    if t < 6: print(0, 0, 0)
    else:
        k = t//2
        gold = silver = bronze = 0
        b = [a.count(i) for i in list(dict.fromkeys(a))]
        #print(b)
        if len(b) < 3: print(0, 0, 0)
        else:
            gold = b[0]
            silver = b[1]
            cc = gold + silver
            for i in range(2, len(b)):
                if cc + b[i] > k: break
                bronze += b[i]
                cc += b[i]
            print(gold, silver, bronze)
