#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long> v(n);
    long long sum = 1;
    for (long long i = 0; i < n; i++) cin >> v[i];
    vector<long long> t;
    for (long long i = 1; i < n; i++) {
      if (v[i] == v[i - 1])
        sum++;
      else {
        t.push_back(sum);
        sum = 1;
      }
    }
    t.push_back(sum);
    long long g = t[0];
    long long s = 0, b = 0, i = 1;
    while (s <= g && i < t.size()) s += t[i++];
    if (g >= s) {
      cout << "0 0 0\n";
      continue;
    }
    while (b <= g && i < t.size()) b += t[i++];
    if (g >= b) {
      cout << "0 0 0\n";
      continue;
    }
    if (g + s + b > n / 2) {
      cout << "0 0 0\n";
      continue;
    }
    while ((g + s + b + t[i]) <= n / 2 && i < t.size()) {
      b += t[i++];
    }
    cout << g << " " << s << " " << b << "\n";
  }
  return 0;
}
