#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const long long mod = 998244353;
const long long N = 1e5 + 10;
int main() {
  ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    if (n < 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    vector<int> f;
    int c = 1;
    for (int i = 1; i < n / 2; i++) {
      if (v[i] == v[i - 1])
        c++;
      else {
        f.push_back(c);
        c = 1;
      }
    }
    if (c > 0) f.push_back(c);
    if (v[n / 2] == v[n / 2 - 1]) f.erase(f.begin() + f.size() - 1);
    if (f.size() < 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    int g = f[0];
    int s = 0, b = 0;
    for (int i = 1; i < f.size(); i++) {
      if (g >= s)
        s += f[i];
      else
        b += f[i];
    }
    if (g == 0 || s == 0 || b == 0 || g >= s || g >= b)
      cout << "0 0 0" << endl;
    else
      cout << g << ' ' << s << ' ' << b << endl;
  }
  return 0;
}
