#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int val;
    map<int, int, greater<int> > mp;
    for (int i = 1; i <= n; i++) {
      cin >> val;
      mp[val]++;
    }
    int lim = n / 2;
    if (mp.size() <= 2) {
      cout << 0 << " " << 0 << " " << 0 << "\n";
      continue;
    }
    if (n < 5) {
      cout << 0 << " " << 0 << " " << 0 << "\n";
      continue;
    }
    int g = 0, s = 0, b = 0;
    for (auto it = mp.begin(); it != mp.end(); it++) {
      if ((g == 0) && ((lim - it->second) >= 0)) {
        g += it->second;
        lim -= g;
      } else if ((g > 0) && (s == 0) && ((lim - it->second) >= 0)) {
        s += it->second;
        lim -= s;
      } else if ((s > 0) && (s <= g) && ((lim - it->second) >= 0)) {
        s += it->second;
        lim -= it->second;
      } else if ((g > 0) && (s > g) && ((lim - it->second) >= 0)) {
        b += it->second;
        lim -= it->second;
      } else
        break;
    }
    cout << g << " " << s << " " << b << "\n";
  }
  return 0;
}
