#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n <= 9) {
    cout << "0 0 0\n";
    return;
  }
  int minScoreIndex = (n - 1) / 2;
  while (minScoreIndex >= 0) {
    if (a[minScoreIndex] > a[minScoreIndex + 1]) break;
    minScoreIndex--;
  }
  if (minScoreIndex < 4) {
    cout << "0 0 0\n";
    return;
  }
  int gIndex = 0, bIndex = minScoreIndex;
  while (a[gIndex + 1] == a[0]) gIndex++;
  while (minScoreIndex - bIndex + 1 <= gIndex + 1 ||
         (bIndex >= 1 && a[bIndex - 1] == a[bIndex]))
    bIndex--;
  if (gIndex >= bIndex) {
    cout << "0 0 0\n";
    return;
  }
  int gold = gIndex + 1;
  int silver = bIndex - gIndex - 1;
  int bronze = minScoreIndex - bIndex + 1;
  if (gold < silver && gold < bronze)
    cout << gold << " " << silver << " " << bronze << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
