for _ in range(input()):
    N = input()
    L = map(int,raw_input().split())
    g = 1
    while g < N and L[g] == L[g-1]: g += 1
    s = 1
    while g+s < N and (L[g+s] == L[g+s-1] or s <= g): s += 1
    b = 1
    while b+g+s < N and (L[g+s+b] == L[g+s+b-1] or b <= g): b += 1
    if (g+s+b)*2 > N:
        print 0,0,0
        continue
    last = N/2 - 1
    while L[last] == L[last+1]: last -= 1
    b = last - g - s + 1
    print g,s,b
