#include <bits/stdc++.h>
using namespace std;
void logf(istream_iterator<string> it) {}
template <typename T, typename... Args>
void logf(istream_iterator<string> it, T a, Args... args) {
  cout << *it << " = " << a << endl;
  logf(++it, args...);
}
const double PI = acos(-1);
void solve() {
  int n;
  cin >> n;
  ;
  vector<int> p(n);
  for (long long i = 0; i < (n); i++) {
    cin >> p[i];
  };
  vector<int> pp;
  for (int i = 0; i < n; i++) {
    pp.push_back(1);
    while (i < n - 1 && p[i] == p[i + 1]) {
      pp.back()++;
      i++;
    }
  }
  int g = pp[0];
  int s = 0;
  int i = 1;
  while (i < pp.size() && s <= g) {
    s += pp[i];
    i++;
  }
  int b = 0;
  while (i < pp.size()) {
    b += pp[i];
    i++;
    if (i < pp.size() && b + pp[i] + g + s > n / 2) break;
  }
  if (s <= g || b <= g || g + s + b > n / 2)
    cout << "0 0 0" << endl;
  else
    cout << g << " " << s << " " << b << endl;
}
int main() {
  cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  int t;
  cin >> t;
  ;
  while (t--) solve();
}
