#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y % 2 == 1) res = (res * x);
    x = (x * x);
    y = y / 2;
  }
  return res;
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    map<long long, long long> mp;
    vector<long long> v;
    long long n, p, temp = -1;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> p;
      v.push_back(p);
      mp[p]++;
    }
    if (n <= 5) {
      cout << 0 << " " << 0 << " " << 0 << endl;
      continue;
    }
    v.erase(unique(v.begin(), v.end()), v.end());
    long long g = mp[v[0]], s = 0, b = 0;
    if (v.size() < 3 || g > n / 2) {
      cout << 0 << " " << 0 << " " << 0 << endl;
      continue;
    }
    long long c = 0, f = 0;
    for (long long i = 0; i < v.size(); i++) {
      c += mp[v[i]];
      if (c > n / 2) break;
      if (c - g > g && f == 0) {
        s = c - g;
        f = 1;
      }
      if (c - g - s > g) b = c - g - s;
    }
    if (s == 0 || b == 0) {
      cout << 0 << " " << 0 << " " << 0 << endl;
      continue;
    } else
      cout << g << " " << s << " " << b << endl;
  }
}
