#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int *p = new int[n + 3];
    for (int i = 0; i < n; i++) cin >> p[i];
    int x = (n - 2) / 2;
    if (x == -1) {
      cout << "0 0 0\n";
      continue;
    }
    int mn = p[x], g = 0, b;
    while (~x && p[x + 1] == p[x]) x--;
    b = x;
    while (g <= x && p[g] == p[0]) g++;
    while (~b && p[b] == p[x]) b--;
    while (b > g && (x - b <= g || g >= 1 + b - g)) {
      int z = b;
      while (~b && p[b] == p[z]) b--;
    }
    if (x - b > g && g < 1 + b - g && g > 0 && x - b > 0 && 1 + b - g > 0)
      cout << g << ' ' << 1 + b - g << ' ' << x - b << '\n';
    else
      cout << "0 0 0\n";
  }
  return 0;
}
