t = int(input())
for i in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    if n < 10:
        print(0,0,0)
        continue
    a.sort(reverse=True)
    g = 0
    b = 0
    s = 0
    r = min(a)
    n = n//2
    
    mx = max(a)
    if r != mx:
        b = 1
        n -= 1
    else:
        print(0,0,0)
        continue
    for i in range(n):
        if a[i] == mx:
            g += 1
    if ((n)-g) % 2 == 0:
        h =((n)-g) // 2
        print(g,h,h+1)
    else:
        h= ((n)-g)// 2
        print(g,h,h)
        
        