'''input
5
12
5 4 4 3 2 2 1 1 1 1 1 1
4
4 3 2 1
1
1000000
20
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
32
64 64 63 58 58 58 58 58 37 37 37 37 34 34 28 28 28 28 28 28 24 24 19 17 17 17 17 16 16 16 16 11
'''

import sys
debug = 1
readln = sys.stdin.readline

def write(s):
    sys.stdout.write(s)

def writeln(s):
    sys.stdout.write(s)
    sys.stdout.write('\n')

def readint():
    return int(readln())

def readints():
    return map(int, readln().split())

def readstr():
    return readln()

def readstrs():
    return readln().split()

def dprint(*args):
    if debug: print(' '.join(map(str, args)))

def getn(p, start):
    ans = 1
    n = len(p)
    for i in xrange(start + 1, n):
        if i > n / 2:
            if p[i] == p[i-1] or ans == 1:
                return -1, -1
            else:
                return ans, i
        else:
            if p[i] == p[i-1]:
                ans += 1
            else:
                return ans, i
    return -1, -1

def solve(p):
    n = len(p)
    g, s, b = 0, 0, 0
    g, nstart = getn(p, 0)
    if g < 0:
        return 0,0,0

    while s <= g:
        tmp, nstart = getn(p, nstart)
        if tmp >= 0: s += tmp
        else: return 0,0,0

    while b <= g:
        tmp, nstart = getn(p, nstart)
        if tmp >= 0: b += tmp
        else: return 0,0,0

    while True:
        tmp, nstart = getn(p, nstart)
        if tmp >= 0: b += tmp
        else: break

    return g,s,b

t = readint()
for _ in xrange(t):
    n = readint()
    p = readints()
    g,s,b = solve(p)
    writeln("%d %d %d" % (g,s,b))