#include <bits/stdc++.h>
using namespace std;
int a[4 * 100000 + 5];
int main(int argc, char *argv[]) {
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    int x;
    for (int i = 0; i < n; i++) a[i] = 0;
    int i = 0, j = 0;
    int last;
    for (; i < n; i++) {
      scanf("%d", &x);
      if (i == 0) {
        a[j]++;
        last = x;
      } else {
        if (x == last) {
          a[j]++;
        } else {
          last = x;
          j++;
          a[j]++;
        }
      }
    }
    int g, s = 0, b = 0;
    g = a[0];
    int k = 1;
    for (; k <= j;) {
      if (s > g)
        break;
      else {
        s += a[k];
        k++;
      }
    }
    for (; k <= j;) {
      if (b > g)
        break;
      else {
        b += a[k];
        k++;
      }
    }
    if (g + s + b > n / 2) {
      cout << "0 0 0" << endl;
    } else {
      for (; k <= j; k++) {
        if (g + s + b + a[k] <= n / 2) {
          b += a[k];
        } else {
          break;
        }
      }
      printf("%d %d %d\n", g, s, b);
    }
  }
  return 0;
}
