
for i in range(int(input())):
	n = int(input())
	arr = [int(i) for i in input().split()]
	req = n//2 -1
	if n<=4:
		print(0,0,0)
		continue
	if arr[req]==arr[req+1]:
		while req >=0 and arr[req]== arr[req+1]:
			req-=1
	g=s=b=1
	ptr = 1

	while arr[ptr]==arr[0] and ptr<=req:
		g+=1
		ptr+=1

	sil = arr[ptr]
	ptr+=1

	while (s<=g or sil == arr[ptr]) and ptr<=req:
		sil = arr[ptr]
		ptr+=1
		s+=1
	b = req - ptr + 1
	
	if g<s and g<b:
		print(g, s, req - ptr + 1)
	else:
		print(0,0,0)
	
	

	

	