from sys import stdin, stdout
from itertools import repeat, groupby
def solve():
    n = int(stdin.readline())
    a = map(int, stdin.readline().split(), repeat(10, n))
    b = [len(list(g)) for k, g in groupby(a)]
    x = b[0]
    m = len(b)
    c = 0
    i = 1
    while i < m and c <= x:
        c += b[i]
        i += 1
    y = c
    c = 0
    while i < m and c + b[i] + y + x <= n / 2:
        c += b[i]
        i += 1
    if 0 < c > x < y > 0 and x + c + y <= n / 2:
        stdout.write('%d %d %d\n' % (x, y, c))
    else:
        stdout.write('0 0 0\n')
T = int(stdin.readline())
for _ in xrange(T):
    solve()
