from collections import *
from functools import reduce,cmp_to_key
import sys
input = sys.stdin.readline

def factors(n):return sorted(list(set(reduce(list.__add__,([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0)))))

def li():return [int(i) for i in input().rstrip('\n').split(' ')]
def st():return input().rstrip('\n')
def val():return int(input())

for _ in range(val()):
    n = val()
    l = sorted(li(),reverse = 1)

    if n<6:
        print(0,0,0)
        continue
    g = s = b = 0
    temp = n//2 - 1
    while temp and l[temp] == l[temp + 1]:temp -= 1
    if temp < 4:
        print(0,0,0)
        continue
    i = j = 0
    g = 1
    while j<temp and l[j] == l[j+1]:
        g += 1
        j += 1
    j += 2
    s = 2
    while j<temp and l[j] == l[j+1]:
        s += 1
        j += 1
    b = temp + 1 - g - s
    if g>=s or g>=b or j == temp:
        print(0,0,0)
        continue
    print(g,s,b)
