cases = int(input())

for _ in range(cases):
    participants = int(input())
    scores = [int(s) for s in input().split()]
    m_medals = participants//2
    
    g = 1
    vg = scores[0]
      
    for i in range(1,len(scores)):
        if scores[i] != vg:
            s = 1
            vs = scores[i]
            i_s = i+1
            break
        g+= 1
           
    for i in range(i_s,len(scores)-1):
        if scores[i] != vs:
            vs = scores[i]
            if s>g:
                newb = 0
                bs = scores[i]
                b_s = i
                break
        s += 1

    b = 0

    for i in range(b_s,len(scores)-1):
        if g+s+b+newb==m_medals:
            if scores[i] != bs:
                b += newb  
            break  
        if scores[i] != bs:
            b += newb         
            newb = 0
            bs = scores[i]

        newb += 1
        
    if g >= s or g >= b or g == 0:
        print("{} {} {}".format(0,0,0))
    else:
        print("{} {} {}".format(g,s,b))