for _ in range(int(input())):
    n = int(input())
    a = list(map(int,input().split()))
    if n<6:
        print(0,0,0)
    else:
        g,s,b = n//2,0,0
        want = n//2
        idx = want-1
        i = idx-1
        bronze_chance = True
        g-=1
        b+=1
        while i>=0 and a[i]==a[i+1]:
            b+=1
            g-=1
            i-=1
        s+=1
        g-=1
        i-=1
        while i>=0 and a[i]==a[i+1]:
            s+=1
            g-=1
            i-=1
        if g>0 and s>0 and b>0:
            print(g,s,b)
        else:
            print(0,0,0)