N = int(input())

for n in range(N):
    T = int(input())  
    lis = [int(_) for _ in input().split()]

    gold = 1
    while gold < T and lis[gold-1] == lis[gold]:
        gold += 1 
    silver = 2 * gold + 1
    while silver < T and lis[silver-1] == lis[silver]:
        silver += 1
    bronze = T // 2
    while bronze > 0 and lis[bronze] == lis[bronze-1]:
        bronze -= 1
    if bronze - silver > gold:
        print(gold, silver - gold, bronze - silver)
    else:
        print(0, 0, 0)