t=int(input())
for q in range(t):
	n=int(input())
	a=list(map(int,input().split()))
	if n<6:
		print('0 0 0')
	else:
		l=n//2
		d={}
		for i in range(l):
			if a[i] in d:
				d[a[i]]+=1
			else:
				d[a[i]]=1
		p=list(d.values())
		ans=[0,0,0]
		j=0
		i=0
		if a[l-1]==a[l]:
			p.pop()
		while j<len(p) and i<3:
			if i==0 and p[j]+ans[i]<(l//3):
				ans[i]+=p[j]
				j+=1
			elif i==1 and p[j]+ans[i]<=((l-ans[0])//2):
				ans[i]+=p[j]
				j+=1
			elif i==2 and p[j]+ans[i]<=((l-ans[0]-ans[1])):
				ans[i]+=p[j]
				j+=1
			else:
				i+=1

		print(*ans)