import bisect
from collections import Counter as cc
for _ in range(int(input())):
	n=int(input())
	arr=list(map(int,input().split()))[::-1]
	if n<10:
		print(0,0,0)
		continue
	arr=arr[bisect.bisect_right(arr,arr[n//2-1]):][::-1]
	c=cc(arr)
	n=len(arr)
	# print(arr)
	arr=list(c.values())
	if len(arr)>3:
		g=arr[0]
		b=arr[-1]
		j=len(arr)-1
		while(b<=g):
			b+=arr[j-1]
			j-=1
		s=n-g-b
		if g<s and g<b:
			print(g,s,b)
			continue
	print(0,0,0)