from sys import stdin

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

for _ in range(int(input())):
    n, a, ans = int(input()), rints(), [1, 0, 0]
    g, s, b = 1, 0, 0

    for i in range(1, n // 2):
        if g:
            if a[i] == a[i - 1]:
                ans[0] += 1
            else:
                s, g, ans[1] = 1, 0, 1

        elif s:
            if a[i] == a[i - 1] or ans[1] <= ans[0]:
                ans[1] += 1
            elif ans[1] > ans[0]:
                b, s, ans[2] = 1, 0, 1

        else:
            if a[i] == a[i - 1] or ans[2] <= ans[0]:
                ans[2] += 1
            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))
