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