#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    if (n < 10) {
      cout << "0 0 0" << endl;
      continue;
    }
    long long z = n / 2 - 1;
    if (a[z] == a[z + 1]) {
      for (long long k = 0; k < n; k++)
        if (a[k] == a[z]) {
          z = k - 1;
          break;
        }
    }
    if (z < 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    vector<long long> vc;
    long long u = 0;
    for (long long i = 0; i < z; i++) {
      if (a[i] == a[i + 1])
        u++;
      else {
        vc.push_back(u + 1);
        u = 0;
      }
      if (i == z - 1) vc.push_back(u + 1);
    }
    if (vc.size() < 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    long long g = vc[0];
    long long s = 0;
    for (long long i = 1; i < vc.size(); i++) {
      s += vc[i];
      if (s > g) break;
    }
    long long yuyu = 0;
    for (long long i = 0; i < vc.size(); i++) yuyu += vc[i];
    long long b = yuyu - s - g;
    if (g < s && g < b) {
      cout << g << " " << s << " " << b << endl;
    } else {
      cout << "0 0 0" << endl;
    }
  }
}
