#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 1;
const int MOD = 998244353;
const int INF = 1e9;
const long long LINF = 1e18;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int hf = n / 2;
  if (hf < 6) {
    cout << "0 0 0" << endl;
    return;
  }
  int mg = 0, ms = 0, mb = 0;
  int cg = 0, cs = 0, cb = 0;
  int ng = 0, ns = 0, nb = 0;
  for (int i = 0; i < hf; ++i) {
    if (mg == 0) {
      mg = a[i];
      cg++;
    } else {
      if (a[i] == mg) {
        cg++;
      } else if (ms == 0) {
        ms = a[i];
        cs++;
      } else {
        if (a[i] == ms) {
          cs++;
        } else {
          if (cs > cg && ms > a[i]) {
            if (a[i] == a[hf]) {
              if (cg < cs && cg < cb) {
                cout << cg << " " << cs << " " << cb << endl;
              } else {
                cout << "0 0 0" << endl;
              }
              return;
            }
            cb++;
          } else {
            cs++;
            ms = a[i];
          }
        }
      }
    }
  }
  if (cg < cs && cg < cb) {
    cout << cg << " " << cs << " " << cb << endl;
  } else {
    cout << "0 0 0" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
}
