#include <bits/stdc++.h>
using namespace std;
void do_this() {
  int n;
  cin >> n;
  vector<int> arr;
  int m;
  cin >> m;
  int count = 1;
  int p;
  for (int i = 0; i < n - 1; i++) {
    cin >> p;
    if (p == m)
      count++;
    else {
      arr.push_back(count);
      m = p;
      count = 1;
    }
  }
  arr.push_back(count);
  if (n < 10) {
    cout << "0 0 0\n";
    return;
  }
  vector<int> ps(arr.size());
  ps[0] = arr[0];
  for (int i = 1; i < ps.size(); i++) ps[i] = arr[i] + ps[i - 1];
  int ind2 = lower_bound(ps.begin(), ps.end(), 2 * ps[0]) - ps.begin();
  if (ind2 == ps.size()) {
    cout << "0 0 0\n";
    return;
  }
  int ind3 = lower_bound(ps.begin(), ps.end(), 3 * ps[0]) - ps.begin();
  if (ind3 == ps.size()) {
    cout << "0 0 0\n";
    return;
  }
  if (ind2 == ind3) ind3++;
  int ind1 = lower_bound(ps.begin(), ps.end(), ps[ind2] / 2) - ps.begin();
  if (ps[ind1] > ps[ind2] / 2) ind1--;
  if (ind1 < 0) {
    cout << "0 0 0\n";
    return;
  }
  int g = 0, b = 0, s = 0;
  g = ps[ind1];
  s = ps[ind2] - g;
  if (s == 1) ind2++;
  s = ps[ind2] - g;
  while (ind3 < ps.size() && ps[ind3] <= n / 2) {
    b = ps[ind3] - ps[ind2];
    ind3++;
  }
  if (g > 0 && s > 0 && b > 0 && g + b + s <= n / 2 && g < s && g < b)
    cout << g << " " << s << " " << b << "\n";
  else
    cout << "0 0 0\n";
}
int main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) do_this();
  return 0;
}
