import os, sys, atexit
if sys.version_info[0] < 3:
    range = xrange
    from cStringIO import StringIO as BytesIO

    sys.stdout = BytesIO()
atexit.register(lambda: os.write(1, sys.stdout.getvalue()))
input = BytesIO(os.read(0, os.fstat(0).st_size)).readline

from sys import stdin,stdout
from collections import *

rints = lambda: [int(x) for x in input().split()]
out = []

for _ in range(int(input())):
    n, a = int(input()), rints()
    s, b, mem = 1, 0, Counter(a)
    dis = deque(sorted(mem.keys(), reverse=True))
    ans = [mem[dis.popleft()], 0, 0]

    for i in dis:
        if ans[1] <= ans[0]:
            ans[1] += mem[i]
        else:
            if sum(ans) + mem[i] <= n // 2:
                ans[2] += mem[i]
            else:
                break
    out.append(
        ' '.join([str(x) for x in ans]) if sum(ans) <= n // 2 and ans[1] > ans[0] and ans[2] > ans[0] else ' '.join(
            [str(x) for x in [0, 0, 0]]))

print('\n'.join(out))
