from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
ii = lambda: int(input())
iia = lambda: list(map(int,input().split()))
isa = lambda: list(input().split())
 
t = ii()
 
for i in range(t):
	n = ii()
	a = iia()
	d = Counter(a)
	d = sorted(d.items(), key=itemgetter(0),reverse=True)
	s = 0
	for i in range(n):
		if(s+d[i][1]<=n//2):
			s+=d[i][1]
		else:
			break
	if(s<5):
		print('0 0 0')
	else:
		print("1 "+str((s-1)//2)+" "+str(s-(s-1)//2-1))
