for _ in range(int(input())):
    n = int(input())
    a = list(map(int, input().split()))
    g, s, b = 0, 0, 0
    p = n//2 - 1

    while p > 0 and a[p] == a[n//2]:
        p -= 1

    if p > 0:
        b += 1
    i = p
    p -= 1
    while p > 0 and a[p] == a[i]:
        p -= 1
        b += 1

    if p > 0:
        s += 1

    i = p
    p -= 1
    while p > 0 and a[p] == a[i]:
        p -= 1
        s += 1

    if p >= 0:
        g = p + 1

    if g > 0 and s > 0 and b > 0:
        print(g, s, b)
    else:
        print(0, 0, 0)

