#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
const long long mod = 1e9 + 7;
const long long MAX_N = 1e5;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
map<long long, long long> mapa;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long casos;
  cin >> casos;
  while (casos--) {
    long long n;
    long long ans1 = 0, ans2 = 0, ans3 = 0;
    cin >> n;
    vector<long long> v;
    long long aux = 0;
    for (int i = 0; i < n; i++) {
      long long num;
      cin >> num;
      if (i < n / 2) {
        if (mapa[num] == 0) v.push_back(num);
        mapa[num]++;
      }
      if (i == n / 2) aux = num;
    }
    if (v.size() <= 2) {
      cout << "0 0 0" << endl;
      continue;
    } else {
      ans1 = mapa[v.front()];
      long long p = 0;
      long long j = 0;
      for (int i = 1; i < v.size(); i++) {
        p += mapa[v[i]];
        if (p > ans1) {
          j = i;
          ans2 = p;
          break;
        }
      }
      for (int i = j + 1; i < v.size(); i++) {
        ans3 += mapa[v[i]];
        if (i == v.size() - 1 && v[i] == aux) {
          ans3 -= mapa[v[i]];
        }
      }
      if (ans1 >= ans3) {
        cout << "0 0 0" << endl;
        continue;
      } else {
        cout << ans1 << " " << ans2 << " " << ans3 << endl;
        continue;
      }
    }
    mapa.clear();
    v.clear();
  }
  return 0;
}
