from sys import stdin
input = stdin.readline
 
for _ in range(int(input())):
	n = int(input())
	p = list(map(int,input().split()))
	l,cou,x = p[0],1,[]
	for i in range(1,n//2+1):
		if l != p[i]:
			l = p[i]
			x.append(cou)
			cou = 0
		cou += 1
	if len(x) < 3:
		print(0,0,0)
	else:
		print(x[0],sum(x)-x[0]-x[-1],x[-1])