t = int(input())
for i in range(t):
	n = int(input())
	#print(n)
	a = input()
	#print(a)
	a = a.split()
	#print(a)
	a = [int(i) for i in a]
	l = n//2
	#print(l)
	m =l
	flag = 0
	for i in range(l-1,-1,-1):
		if a[i]==a[i+1]:
			m-=1
		else:
			break

	f = 0
	#print(m)
	g = b =s =0
	cur = a[0]
	for i in range(1,m):
		if a[i]==cur:
			g+=1
	g+=1
	#print(g)
	if g == m or n==1:
		f=1
	else:
		cur =a[g]
		si = g
		while s<=g and si<m:
			for i in range(si,m):
				if a[i]==cur:
					s+=1
				else:
					break
			cur = a[s+g]
			si = s+g
			#print(si)
		if g+s == m:
			f=1
		else :
			b = m - g - s
	if f==1:
		print("0 0 0")
	elif g>0 and s>0 and b>0 and s>g and b>s:
		print(str(g)+" "+str(s)+" "+str(b))
	else:
		print("0 0 0")




