#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
using vec = vector<T>;
template <class T>
using vvec = vector<vec<T>>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int T;
  cin >> T;
  for (int t = 0; t < T; t++) {
    int N;
    cin >> N;
    map<int, int> m;
    for (int i = 0; i < N; i++) {
      int a;
      cin >> a;
      m[-a]++;
    }
    int g = -1, s = -1, b = -1;
    int sum = 0;
    for (auto x : m) {
      if (g == -1) {
        g = x.second;
        sum += x.second;
      } else if (s <= g) {
        if (s == -1)
          s = x.second;
        else
          s += x.second;
        sum += x.second;
      } else {
        if (sum + x.second <= N / 2) {
          if (b == -1)
            b = x.second;
          else
            b += x.second;
          sum += x.second;
        } else
          break;
      }
    }
    if (b <= g)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else
      cout << g << " " << s << " " << b << endl;
  }
}
