#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, i, k, m = 1, s = 0, g = 0, b = 0, t = 0, d;
  cin >> n;
  vector<int> a(n);
  for (i = 0; i != n; i++) {
    cin >> a[i];
    if (i) {
      if (a[i] != a[i - 1]) {
        if (m == 1)
          m++;
        else if (m == 2 && s > g)
          m++;
        else if (m == 3) {
          if (i <= n / 2) t = b;
        }
      }
    }
    if (m == 1)
      g++;
    else if (m == 2)
      s++;
    else
      b++;
  }
  if (t <= g)
    cout << "0 0 0\n";
  else
    cout << g << ' ' << s << ' ' << t << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
