#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using ui = unsigned int;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
struct fast_ios {
  fast_ios() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
  }
} fast_ios_;
int t, n, g, s, b;
int main() {
  cin >> t;
  while (t--) {
    g = s = b = 0;
    map<int, int, greater<int> > ma;
    cin >> n;
    for (int i = 0; i < n; ++i) {
      int tmp;
      cin >> tmp;
      if (i <= n / 2) {
        if (i == n / 2) {
          if (ma[tmp] != 0) ma[tmp] = 0;
        } else
          ma[tmp] += 1;
      }
    }
    auto it = ma.begin();
    g = (*it).second;
    ++it;
    while (it != ma.end() && s <= g) {
      s += (*it).second;
      ++it;
    }
    while (it != ma.end()) {
      b += (*it).second;
      ++it;
    }
    if (g >= s || g >= b) g = s = b = 0;
    printf("%d %d %d\n", g, s, b);
  }
  return 0;
}
