#include <bits/stdc++.h>
using namespace std;
long long a[400100];
signed main() {
  ;
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(0);
  cout << fixed << setprecision(10);
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    long long g = 0, s = 0, b = 0;
    if (n < 10) {
      cout << "0 0 0\n";
      continue;
    }
    long long tmp = a[n / 2];
    long long br = 0;
    for (long long i = (n / 2 - 1); i >= 0; i--) {
      if (a[i] != tmp) {
        br = i;
        break;
      }
    }
    br++;
    long long i;
    for (i = 0; i < br; i++) {
      g++;
      if (a[i] != a[i + 1]) break;
    }
    i++;
    i += g;
    s = g;
    for (; i < br; i++) {
      s++;
      if (a[i] != a[i + 1]) break;
    }
    i++;
    i += g;
    b = g;
    for (; i < br; i++) {
      b++;
    };
    if (s <= g || b <= g) {
      cout << "0 0 0\n";
      continue;
    }
    cout << g << " " << s << " " << b << "\n";
  };
}
