for _ in range(int(input())):
    n = int(input())
    p = [int(__) for __ in input().split()][:n // 2 + 1]
    q = p.pop()
    if n == 1:
        print(0, 0, 0)
        continue
    for i in range(len(p)):
        if p[-1] == q:
            p.pop()
    if len(p) == 0:
        print(0, 0, 0)
        continue
    l1 = [0 for ___ in range(p[0])]
    for i in p:
        l1[i - 1] += 1
    l1.reverse()
    counter = []
    for i in l1:
        if i != 0:
            counter.append(i)
    if len(counter) <= 3:
        print(0, 0, 0)
        continue
    g = counter[0]
    s = 0
    b = 0
    for i in counter[1:]:
        if s <= g:
            s += i
        else:
            b += i
    if b > g and s > g:
        print(g, s, b)
    else:
        print(0, 0, 0)
