#include <bits/stdc++.h>
using namespace std;
long long M = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long p[n];
    map<long long, long long> m;
    for (long long i = 0; i < n; i++) {
      cin >> p[i];
      m[-p[i]]++;
    }
    if (n < 6)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else {
      long long g = 0, s = 0, b = 0;
      for (auto j : m) {
        if (g == 0) {
          g += j.second;
        } else if (s <= g) {
          s += j.second;
        } else {
          b += j.second;
        }
        if (g + s + b > n / 2) {
          b -= j.second;
          break;
        }
      }
      if (b > g && g + s + b <= n / 2)
        cout << g << " " << s << " " << b << endl;
      else
        cout << 0 << " " << 0 << " " << 0 << endl;
    }
  }
}
