import sys
input = sys.stdin.readline
t = int(input())
for _ in range(t):
  n = int(input())
  a = list(map(int,input().split()))
  if n < 10:
    print(0,0,0)
    continue
  mx = a[0]
  mx2 = 0
  border = a[n//2]
  g,s,b = 0,0,0
  for i in range(n//2):
    if a[i] == mx:
      g += 1
    elif s <= g or a[i] == mx2:
      s += 1
      mx2 = a[i]
    elif a[i] > border:
      b += 1
  if g < s and g < b:
    print(g,s,b)
  else:
    print(0,0,0)