t = int(input())
for i in range(t):
	n = int(input())
	p = list(map(int, list(input().split())))

	if n < 6:
		print (0, 0, 0)

	else:
		g = 1
		s = 2
		b = 2
		while p[g-1] <= p[g+s-1] and g+s+b-1 <= n // 2:
			g += 1
			s += 1

		while p[g+s-1] <= p[g+s+b-1] and g+s+b-1 <= n // 2:
			s += 1

		max_idx = n // 2

		while p[g+s+b-1] != p[max_idx] and g+s+b-1 < n // 2:
			b += 1

		if b <= 1:
			print (0, 0, 0)

		else:
			print (g, s, b - 1)