#include <bits/stdc++.h>
int a[400007], c[400007];
int main() {
  int n;
  scanf("%d", &n);
  while (n--) {
    int num, de = 0, i, j, p, q, g = 0, s = 0, b = 0;
    scanf("%d", &num);
    for (i = 1; i <= num; i++) scanf("%d", &c[i]);
    for (i = 1, j = 1; i <= num; i++) {
      if (i == 1) {
        a[1]++;
        continue;
      }
      if (c[i] != c[i - 1]) {
        j++;
        a[j]++;
      } else
        a[j]++;
    }
    if (j <= 3 || num < 10) {
      printf("0 0 0\n");
      continue;
    } else {
      for (i = 0; i <= j; i++) {
        if (de + a[i] <= num / 2)
          de += a[i];
        else
          break;
      }
      g = a[1];
      for (p = 2; p < i - 1; p++) {
        s += a[p];
        if (s >= g) break;
      }
      b = de - g - s;
      if (g <= 0 || s <= 0 || b <= 0 || g > s || g > b || g + s + b > num / 2)
        printf("0 0 0\n");
      else
        printf("%d %d %d\n", g, s, b);
    }
  }
  return 0;
}
