import math
a = int(input())
for x in range(a):
    num = int(input())
    ar = []
    res = []
    for y in input().split(' '):
        ar.append(int(y))
    if num<12:
        print('0 0 0')
        continue
    g = 1
    s = 0
    b = 0
    half = math.floor(num/2)-2
    max = ar[0]
    max2 = ar[0]
    ar.pop(0)
    for y in ar:
        if y < max2:
            if s>g and y<max:
                break
            s = s+1
        elif y == max2:
            g = g+1
        max = y
    ch = 0
    if ar[half]!=ar[half+1]:
        b = math.floor(num/2)-g-s
    else:
        temp = ar[half]
        if temp == max:
            ch = 1
            print('0 0 0')
            continue
        else:
            b = b-1
            half = half-1
            while True:
                if ar[half]>temp:
                    b = b+math.floor(num/2)-g-s
                    break
                else:
                    b = b-1
                    half = half-1
    if g<s or g<b:
        print('0 0 0')
    else:
        print(str(g) + ' ' + str(s) + ' ' + str(b))
