#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("O3")
using namespace std;
const double eps = 1e-9;
const double pi = acos(-1.0);
const long long inf = (2e9 + 7);
const long long mod = 1e9 + 7;
const long long MAXN = 1e5 + 5;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cout << fixed << setprecision(10);
  cin.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> p(n);
    for (long long i = 0; i < n; ++i) cin >> p[i];
    long long g = 0, s = 0, b = 0;
    long long q = p[n / 2];
    long long idx = 0;
    long long i = 0;
    n /= 2;
    while (i < n && p[i] == p[0]) {
      ++g;
      ++i;
    }
    idx = i;
    while (i < n && s <= g) {
      while (i < n && p[i] == p[idx]) {
        ++s;
        ++i;
      }
      idx = i;
    }
    while (i < n && p[i] != q) {
      ++i;
      ++b;
    }
    if (g >= s || g >= b || b == 0 || s == 0 || g == 0) {
      cout << "0 0 0" << endl;
    } else
      cout << g << ' ' << s << ' ' << b << endl;
  }
  return 0;
}
