#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, T;
  cin >> T;
  for (int t = 0; t < T; t++) {
    cin >> N;
    vector<int> v(N);
    for (int i = 0; i < N; i++) cin >> v[i];
    int g = 1;
    while (g < N / 2 && v[g] == v[g - 1]) g++;
    int s = 1;
    while (s + g < N / 2 && (s <= g || v[s + g] == v[s + g - 1])) s++;
    int b = 1;
    while (b + s + g < N / 2) b++;
    while (b + s + g >= s + g && v[b + s + g] == v[b + s + g - 1]) b--;
    if (g < s && g < b)
      cout << g << ' ' << s << ' ' << b << '\n';
    else
      cout << "0 0 0\n";
  }
}
