import sys
input = lambda: sys.stdin.readline().strip("\r\n")

for _ in range(int(input())):
    n = int(input())
    p = list(map(int, input().split()))
    g = 1
    while g < n and p[g] == p[g - 1]:
        g += 1
    s = g + 1
    while g + s < n and p[g + s] == p[g + s - 1]:
        s += 1
    ind = n // 2
    while ind > 0 and p[ind] == p[ind - 1]:
        ind -= 1
    b = ind - s - g
    if b > g:
        print(g, s, b)
    else:
        print(0, 0, 0)
