#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 314;
const int INF = 1e9;
const double PI = acos(-1);
const int MOD = 1e9 + 7;
const double eps = 1e-9;
int a[N];
void solve() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  if (n < 6) {
    cout << "0 0 0\n";
    return;
  }
  int g, s, b;
  g = s = b = 0;
  int c = 0;
  for (int i = n / 2; i >= 1; --i) {
    if (a[i] != a[i + 1]) {
      c = i;
      break;
    }
  }
  int it = 1;
  int pt = a[it];
  while (a[it] == pt && it <= c) {
    g++;
    it++;
  }
  int lst = 0;
  while (s <= g && it <= c) {
    s++;
    lst = a[it];
    it++;
  }
  while (a[it] == lst && it <= c) {
    s++;
    it++;
  }
  while (it <= c) {
    it++;
    b++;
  }
  if (g > b || g > s || s == 0 || g == 0 || b == 0) {
    cout << "0 0 0\n";
    return;
  }
  cout << g << ' ' << s << " " << b << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solve();
}
