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