#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int t;
  cin >> t;
  for (int tt = 0; tt < t; tt++) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    if (n < 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    int b = n / 2;
    while (b >= 0 && a[b] == a[b - 1]) b--;
    b--;
    int g = 0;
    while (g < n - 1 && a[g] == a[g + 1]) g++;
    int exit = false;
    for (int s = g + 1; s < b; s++) {
      if (s - g > g + 1 && b - s > g + 1 && a[s] != a[s + 1]) {
        cout << g + 1 << " " << s - g << " " << b - s << endl;
        exit = true;
        break;
      }
    }
    if (!exit) {
      cout << "0 0 0" << endl;
    }
  }
  return 0;
}
