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