#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int p[n];
    for (int i = 0; i < n; i++) cin >> p[i];
    if (n < 6) {
      cout << "0 0 0\n";
      continue;
    }
    int k = n / 2;
    int k1 = k;
    while (k > 0 && p[k - 1] == p[k1]) k--;
    set<int> sk;
    for (int i = 1; i < k; i++)
      if (p[i] != p[i - 1]) sk.insert(i);
    sk.insert(1e9);
    for (int g = 1; g < k; g++) {
      if (p[g] == p[g - 1]) continue;
      int gs = *sk.upper_bound(2 * g);
      int b = k - gs;
      int s = gs - g;
      if (g > 0 && s > 0 && b > 0 && g < s && s < b) {
        cout << g << " " << s << " " << b << "\n";
        goto X;
      }
    }
    cout << "0 0 0\n";
  X:;
  }
}
