t = int(input())
for _ in range(t):
    n = int(input())
    arr = [int(x) for x in input().split()]
    if n//2 < 5:
        g=0
        s=0
        b=0
    else:
        if arr[n//2-1]!=arr[n//2]:
            arr = arr[:n//2]
        else:
            key = arr[n//2]
            for k in range(n//2-1, 0, -1):
                if key==arr[k]:
                    continue
                else:
                    arr=arr[:k+1]
                    break

        for i in range(1,len(arr)):
            if arr[i]==arr[0]:
                continue
            else:
                break
        if len(arr) - i > 2*i:
            g=i
            for j in range(i+1, len(arr)):
                if arr[i]==arr[j]:
                    continue
                else:
                    if j-i<=i:
                        continue
                    else:
                        break
            if j<len(arr)-1:
                s=j-i
                b=len(arr)-j
            else:
                g=0
                s=0
                b=0
        else:
            g=0
            s=0
            b=0

    print (g, ' ', s, ' ', b)