#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, i, j, ans = 0;
  cin >> n;
  vector<long long int> a(n), b;
  for (long long int i = 0; i < n; i++) cin >> a[i];
  i = 0;
  while (i < n) {
    long long int x = 1, j = i + 1, e = a[i];
    while (j < n && a[j] == e) j++, x++;
    i = j;
    b.push_back(x);
  }
  long long int x = 0, y = 0, z = 0, cnt = 0, m = n;
  n = b.size();
  if (n < 4)
    x = 0, y = 0, z = 0;
  else {
    x = b[0];
    cnt = b[0];
    i = 1;
    while (b[i] + b[i + 1] + cnt <= m / 2) y += b[i], cnt += b[i], i++;
    z = b[i];
  }
  if (y <= x || z <= 0) x = 0, y = 0, z = 0;
  cout << x << " " << y << " " << z << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int T = 1;
  cin >> T;
  for (int t = 1; t <= T; t++) {
    solve();
  }
  return 0;
}
