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