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 = 0
    gLow = 0
    s = 0
    sLow = 0
    b = 0
    nm = ar [math.floor(num/2)]
    for y in ar:
        if g == 0:
            gLow = y
            g = g+1
            continue
        if y == gLow:
            g = g+1
            continue
        if s <= g:
            sLow = y
            s = s+1
            continue
        if y == sLow:
            s = s+1
            continue
        if y > nm:
            b = b+1
        else:
            break
    if g>s or g>b:
        print('0 0 0')
        continue
    else:
        print(str(g) + ' ' + str(s) + ' ' + str(b))
