q = int(input())
#q = 1
for _ in range(q):
    n = int(input())
    p = list(map(int, input().split(' ')))
    
    if n < 10:
        print(0, 0, 0)
        continue
    
    
    currently = 0
    temp = p[0]
    count = [1, 0, 0, 0]
    for i in range(1, n):
        if currently <= 3:
            if p[i] == temp:
                count[currently] += 1
            elif p[i] < temp:
                
                if currently == 2:
                    count[3] += n - i
                    break
                
                else:
                    currently += 1
                    temp = p[i]
                    count[currently] += 1
                    
    g, s, b, r = count
    
    if g*s*b <= 0:
        print(0,0,0)
        continue
    
    total = g + b+ s
                
    if n %2 == 0:
        mid = (n-1)//2
    else:
        mid = (n-1)//2 - 1
    
    t = 0
    
    for i in range(mid, -1, -1):
#        print("{} > {}".format(p[i], p[i+1]))
        if p[i] > p[i+1]:
            t = i + 1
            break
            
            
#    print(g, s, b, t)
            
    if t < total :
        print(0, 0, 0)
        continue        
    
    if t >= total:
        if g < b:
            if g < t - total + s:
                print(g, t - total + s, b)
            else:
                print(0 ,0 ,0)
            
        elif g < s:
            if g < t - g -s:
                print(g, s, t-g-s)
                
            else:
                print(0, 0, 0)
                
                
        
    
                
#    g, s, b, r = count
#    
#    if (g + s + b)*2 <= r:
#        if g < s and g < b:
#            if g * b*  s > 0  :
#                
            
        
        
        
            