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