N = int(raw_input())

def helper(l):
  count = 1
  total = 0
  g, s, b = 0, 0, 0
  stage = 0
  for i in range(1, min(len(l), len(l) / 2 + 1)):
    if l[i - 1] != l[i]:
      if g == 0:
        g = i
      elif s == 0:
        if i > g * 2:
          s = i - g
      else:
        if (i - s - g) > g:
          b = i - s - g
  return (0, 0, 0) if b == 0 else (g, s, b)

for i in range(N):
  n = int(raw_input())
  num = [int(i)  for i in raw_input().split(' ')]

  g,s,b = helper(num)
  print g,s,b
