#include <bits/stdc++.h>
using namespace std;
int a[500005];
void lol() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int k = n / 2;
  while (a[k] == a[k + 1] && k > 0) k--;
  int alt = 1;
  while (a[alt] == a[alt + 1] && alt <= k) alt++;
  int mungu = alt + 1;
  while (a[mungu + alt] == a[mungu + alt + 1] && alt + mungu <= k) mungu++;
  int hurel = k - (mungu + alt);
  if (hurel <= alt)
    cout << "0 0 0\n";
  else
    cout << alt << " " << mungu << " " << hurel << "\n";
}
int main() {
  int n;
  cin >> n;
  while (n--) {
    lol();
  }
}
