#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, c, g, s, b, i, t, si, j;
  cin >> t;
  while (t--) {
    cin >> n;
    long long int a[n];
    for (i = 0; i < n; i++) cin >> a[i];
    g = s = b = 0;
    vector<pair<long long int, long long int> > v;
    k = a[0];
    c = 1;
    for (i = 1; i < n; i++) {
      if (a[i] == k)
        c++;
      else {
        v.push_back(make_pair(k, c));
        k = a[i];
        c = 1;
      }
    }
    v.push_back(make_pair(k, c));
    si = v.size();
    g = v[0].second;
    s = b = 0;
    for (i = 1; i < si; i++) {
      s = s + v[i].second;
      if (s > g) break;
    }
    for (j = i + 1; j < si; j++) {
      if (g + s + b + v[j].second <= n / 2)
        b = b + v[j].second;
      else
        break;
    }
    if (g < s && g < b && (g + s + b) <= n / 2)
      cout << g << " " << s << " " << b << "\n";
    else
      cout << "0 0 0\n";
  }
  return 0;
}
