#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    deque<long long> p(n);
    for (long long i = 0; i < n; i++) cin >> p[i];
    long long index = n / 2 - 1;
    while (index >= 0 && p[index] == p[index + 1]) index--;
    string fail = "0 0 0";
    if (index < 0) {
      cout << fail << "\n";
      continue;
    }
    while (p.size() > index + 1) p.pop_back();
    long long g = 0;
    long long s = 0;
    long long b = 0;
    map<long long, long long> m;
    for (long long x : p) {
      if (!m.count(x)) m[x] = 0;
      m[x]++;
    }
    vector<pair<long long, long long> > res;
    for (auto kv : m) {
      res.push_back(kv);
    }
    reverse(res.begin(), res.end());
    for (pair<long long, long long> p : res) {
      if (g == 0) {
        g = p.second;
      } else if (s <= g) {
        s += p.second;
      } else {
        b += p.second;
      }
    }
    if (g == 0 || s == 0 || b == 0)
      cout << fail << "\n";
    else
      cout << g << " " << s << " " << b << "\n";
  }
}
