
N = int(input())
for _ in range(N):
    nn = int(input())
    nums = list(map(int,input().split(' ')))
    if nn<5:print('0 0 0');continue
    if nn&1==1:spe = nums[nn//2+1]
    else:spe = nums[nn//2]
    ff = []
    for i in range(nn):
        if nums[i]>spe:
            ff.append(nums[i])
    ln = len(ff)
    if ln<5:print('0 0 0');continue
    g=0;s=0;b=0
    res=[]
    tem = ff[0];wz = 0
    for i in range(1,ln):
        if ff[i]!=tem:
            res.append(i-wz)
            tem = ff[i];wz=i
            if i==ln-1:
                res.append(1)
                break
        if i ==ln-1:res.append(i-wz+1)
    g = res[0]
    sum = 0
    for i in range(1,len(res)):
        sum += res[i]
        if sum>g:
            s = sum;break
    b = ln-g-s
    if g<s and g<b:
        print('{} {} {}'.format(g,s,b))







