#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
stringstream output;
inline void eOP();
inline void solve() {
  int n;
  cin >> n;
  int a, b, c;
  vector<int> p(n);
  for (int& e : p) {
    cin >> e;
  }
  a = 1;
  b = 0;
  c = 0;
  int i = 1;
  for (; i < n; ++i) {
    if (p[i] == p[i - 1]) {
      ++a;
    } else {
      break;
    }
  }
  for (; i < n; ++i) {
    if (b <= a) {
      ++b;
      continue;
    }
    if (p[i] == p[i - 1]) {
      ++b;
    } else {
      break;
    }
  }
  for (i = n / 2; i >= 0; --i) {
    if (p[i] == p[i - 1]) {
    } else {
      break;
    }
  }
  c = i - a - b;
  if (a >= c) {
    a = b = c = 0;
  }
  cout << a << " " << b << " " << c << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  size_t t = 1;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    solve();
  }
  eOP();
}
inline void eOP() {
  cout << output.str();
  output.str(string());
  exit(0);
}
