#include <bits/stdc++.h>
using namespace std;
int a[400001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) cin >> a[i];
    int g = 1, s = 1, b = 1;
    while (g < n && a[g - 1] == a[g]) g++;
    while (g + s < n && (a[g + s - 1] == a[g + s] || g >= s)) s++;
    while (g + s + b < n && (a[g + s + b - 1] == a[g + s + b] || g >= b)) b++;
    if (g + s + b > n / 2) {
      cout << "0 0 0\n";
      continue;
    }
    int ans_b = b;
    while (g + s + b <= n / 2) {
      if (a[g + s + b - 1] != a[g + s + b]) ans_b = b;
      b++;
    }
    cout << g << ' ' << s << ' ' << ans_b << '\n';
  }
  return 0;
}
