#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int q;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    map<int, int> m;
    for (int i = 0; i < n; i++) {
      int k;
      cin >> k;
      m[-k]++;
    }
    int a = 0, b = 0, c = 0;
    auto it = m.begin();
    a = it->second;
    it++;
    while (it != m.end() && b <= a) {
      b += it->second;
      it++;
    }
    while (it != m.end() && a + b + it->second + c <= n / 2) {
      c += it->second;
      it++;
    }
    if (!a || !b || !c || a >= b || a >= c || a + b + c > n / 2)
      cout << "0 0 0\n";
    else
      cout << a << ' ' << b << ' ' << c << '\n';
  }
}
