#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  vector<long long> q(n, 0);
  for (long long i = 0; i < n; i++) {
    cin >> q[i];
  }
  long long g = 1, s = 1, b = 0;
  for (long long i = 1; i < n && q[i - 1] == q[i]; i++) {
    g++;
  }
  for (long long i = g + 1; i < n && (s <= g || q[i - 1] == q[i]); i++) {
    s++;
  }
  long long l = 10000000;
  for (long long i = g + s; g + s + b <= n / 2 && i < n; i++) {
    if (q[i] == q[i - 1]) {
      l++;
    } else {
      l = 1;
    }
    b++;
  }
  b -= l;
  if (b > g)
    cout << g << ' ' << s << ' ' << b << "\n";
  else {
    cout << "0 0 0\n";
  }
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long test = 0;
  cin >> test;
  while (test--) {
    solve();
  }
}
