t = int(input())
for _ in range(t):
    n = int(input())
    p = list(map(int, input().split()))
    ineq = []
    for i in range(n//2):
        if p[i] != p[i + 1]:
            ineq.append(i)
    # print(ineq)
    if len(ineq) < 3 or ineq[0] >= n // 4 - 1:
        print(0, 0, 0)
    else:
        ans = [0, 0, 0]
        i = 0
        ind = ineq[i]
        while i < len(ineq) and ineq[i] < n // 4:
            j = i + 1
            while j < len(ineq) and ineq[j] < n // 4:
                g = ineq[i] + 1
                s = ineq[j] - ineq[i]
                b = ineq[-1] - ineq[j]
                if g < s and g < b:
                    ans = [g, s, b]
                j += 1
            i += 1
        print(*ans)
