t = int(input())
for _ in range(t):
    n = int(input())
    p = [0] + list(map(int,input().split()))
    if n < 6:
        print(0,0,0)
        continue
    g = []
    cg = 0
    s = []
    cs = 0
    for i in range(1,(n//2)+2):
        if i==1:
            g.append(p[i])
            cg += 1
        else:
            if p[i]==g[0]:
                cg += 1
            else:
                if s == []:
                    s.append(p[i])
                    cs += 1
                else:
                    if p[i] in s:
                        cs += 1
                    else:
                        s.append(p[i])
                        cs += 1
    if p[(n//2)+1] in s:
        s.remove(p[(n//2)+1])
    cg = p.count(g[0])
    cs = 0
    for i in s:
        cs += p.count(i)
    if cg>=(cs//2):
        print(0,0,0)
    else:
        print(cg,cs//2,cs-(cs//2))

