#include <bits/stdc++.h>
using namespace std;
void solve(vector<int> vc) {
  int g = 0, s = 0, b = 0;
  int n = vc.size();
  if (n < 6) {
    cout << "0 0 0" << endl;
    return;
  }
  for (int i = 0; i < n / 2; i++) {
    if (vc[i] == vc[0]) {
      g++;
    } else
      s++;
  }
  if (g >= s) {
    cout << "0 0 0" << endl;
    return;
  }
  s = 0;
  for (int i = g; i < n / 2; i++) {
    if (i < 2 * g + 1) {
      s++;
    } else {
      b++;
    }
  }
  if (vc[n / 2 - 1] == vc[n / 2]) {
    for (int i = s; i < n / 2; i++) {
      if (vc[i] == vc[n / 2]) b--;
    }
  }
  if (g >= b || g >= s) {
    cout << "0 0 0" << endl;
    return;
  }
  cout << g << " " << s << " " << b << " " << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> vc(n);
    for (int i = 0; i < n; i++) {
      cin >> vc[i];
    }
    solve(vc);
  }
  return 0;
}
