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