'''input
5
12
5 4 4 3 2 2 1 1 1 1 1 1
4
4 3 2 1
1
1000000
20
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
32
64 64 63 58 58 58 58 58 37 37 37 37 34 34 28 28 28 28 28 28 24 24 19 17 17 17 17 16 16 16 16 11
'''
from sys import stdin
def input():
    return stdin.readline()[:-1]


for _ in range(int(input())):
    n = int(input())
    v = list(map(int, input().split()))
    splits = []
    a, b = 0, n // 2 + 1
    for i in range(1, b):
        if v[i] < v[i - 1]:
            splits.append(i)
    #print(splits)
    if len(splits) < 3:
        print('0 0 0')
    else:
        g = splits[0]
        for i in range(1,len(splits)):
            if splits[i] - g > g:
                s = splits[i]
                break
        if splits[-1] - s > g:
            b = splits[-1]
        else:
            b = -1

        if b == -1:
            print('0 0 0')
        else: print(g, s - g, b - s)
