#include <bits/stdc++.h>
using namespace std;
int x[200005];
int main() {
  int q, Q, i, st, dr, n, k, ans, nr, sum;
  int g, s, b;
  cin >> Q;
  for (q = 1; q <= Q; q++) {
    cin >> n;
    k = 0;
    ans = 0;
    for (i = 1; i <= n; i++) {
      cin >> nr;
      if (ans != nr) {
        k++;
        x[k] = 1;
        ans = nr;
      } else
        x[k]++;
    }
    g = x[1];
    sum = x[2];
    for (i = 3; sum + g + x[i] <= n / 2; i++) sum += x[i];
    s = 0;
    for (i = 2; s <= g; i++) s += x[i];
    b = sum - s;
    if (g < s and g < b and b and s and g and b + g + s <= n / 2)
      cout << g << " " << s << " " << b;
    else
      cout << "0 0 0";
    cout << "\n";
  }
  return 0;
}
