for _ in range(input()):
	n=input()
	a=map(int,raw_input().split())
	p=[]
	c=1
	for i in range(n//2):
		if a[i]==a[i+1]:
			c+=1
		else:
			p.append(c)
			c=1
	l=len(p)
	x=0
	y=0
	z=0
	if l>2:
		x=p[0]
		i=1
		while i<l and y<=x:
			y+=p[i]
			i+=1
		z=sum(p[i:])
	if x<y and x<z:
		print x,y,z
	else:
		print 0,0,0