#include <bits/stdc++.h>
using namespace std;
const int MAX = 4e5 + 5;
void swap(int &x, int &y) {
  int tmp = x;
  x = y;
  y = tmp;
}
int p[MAX];
int counts[MAX];
int num, awardNum;
int current = -1;
void outputCount() {
  for (int i = 0; i < num - 1; ++i) cout << counts[i] << " + ";
  cout << counts[num - 1] << " = " << awardNum << endl;
}
void store(int storeNum) {
  if (storeNum == current)
    counts[num]++;
  else
    counts[++num] = 1;
  awardNum++;
  current = storeNum;
}
int main(int argc, char const *argv[]) {
  int t;
  int n;
  int g, s, b;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; ++i) cin >> p[i];
    num = awardNum = 0;
    counts[0] = 0;
    current = p[0];
    int limit = p[n / 2];
    for (int i = 0; p[i] > limit; ++i) store(p[i]);
    if (num < 2)
      cout << "0 0 0" << endl;
    else {
      g = counts[0];
      s = 0;
      b = awardNum - g;
      for (int i = 1; i < num; ++i) {
        s += counts[i];
        b -= counts[i];
        if (g < s && g < b) break;
      }
      if (g < s && g < b)
        printf("%d %d %d\n", g, s, b);
      else
        cout << "0 0 0" << endl;
    }
  }
  return 0;
}
