#include <bits/stdc++.h>
using namespace std;
void item() {
  int n;
  cin >> n;
  map<int, int, greater<int>> m;
  int k = n / 2;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    m[x]++;
  }
  int g = 0, s = 0, b = 0, sum = 0;
  for (auto x : m) {
    if (g == 0) {
      if (sum + x.second <= k) {
        g += x.second;
        sum += x.second;
      } else
        break;
    } else if (s == 0 || s <= g) {
      if (sum + x.second <= k) {
        sum += x.second;
        s += x.second;
      } else
        break;
    } else {
      if (sum + x.second <= k) {
        b += x.second;
        sum += x.second;
      } else
        break;
    }
  }
  if (g < s && g < b && g != 0)
    cout << g << " " << s << " " << b << "\n";
  else
    cout << "0 0 0\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n = 1;
  cin >> n;
  while (n--) item();
}
