#include <bits/stdc++.h>
using namespace std;
const int N = 400005;
int n, a[N];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) scanf("%d", a + i);
    int lim = n / 2;
    while (lim > 0 and a[lim] == a[lim + 1]) lim--;
    if (lim <= 0) {
      printf("0 0 0\n");
      continue;
    }
    int g = 1;
    while (g < lim and a[g] == a[g + 1]) g++;
    if (g + g + g + 1 >= lim) {
      printf("0 0 0\n");
      continue;
    }
    int s = g + 1;
    while (s + g < lim and a[s + g] == a[s + g + 1]) s++;
    int b = lim - s - g;
    if (b <= g) {
      printf("0 0 0\n");
      continue;
    }
    printf("%d %d %d\n", g, s, b);
  }
}
