#include <bits/stdc++.h>
using namespace std;
int v[400010];
int main() {
  FILE *fin = stdin;
  FILE *fout = stdout;
  int t, n, i, g, s, b, start, poz;
  fscanf(fin, "%d", &t);
  for (; t; t--) {
    fscanf(fin, "%d", &n);
    for (i = 1; i <= n; i++) fscanf(fin, "%d", &v[n - i + 1]);
    g = 1;
    i = n - 1;
    while (i) {
      if (v[i] == v[i + 1])
        g++;
      else
        break;
      i--;
    }
    if (i == 0 || g > n / 2) {
      fprintf(fout, "0 0 0\n");
      continue;
    }
    start = n / 2 + n % 2;
    while (v[start] == v[start + 1]) start++;
    poz = n - g;
    s = 0;
    while ((s <= g || v[poz] == v[poz + 1]) && poz > start) {
      s++;
      poz--;
    }
    b = poz - start;
    if (poz <= start || g >= b) {
      fprintf(fout, "0 0 0\n");
      continue;
    }
    fprintf(fout, "%d %d %d\n", g, s, b);
  }
  return 0;
}
