#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, i;
    cin >> n;
    vector<long long> v, p, a;
    for (i = 0; i < n; i++) {
      long long temp;
      cin >> temp;
      v.push_back(temp);
    }
    long long cur = v[0];
    long long cnt = 1;
    for (i = 1; i < n; i++) {
      if (v[i] == cur)
        cnt++;
      else {
        p.push_back(cnt);
        cnt = 1;
        cur = v[i];
      }
    }
    if (cur > 0) p.push_back(cnt);
    long long sum = 0;
    for (i = 0; i < int(p.size()); i++) {
      if (sum + p[i] <= (n / 2)) {
        a.push_back(p[i]);
        sum += p[i];
      } else
        break;
    }
    if (a.size() < 3)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else {
      long long g = a[0];
      long long n1 = a.size();
      long long b = 0;
      long long ind;
      for (i = n1 - 1; i >= 1; i--) {
        if (b + a[i] <= g)
          b += a[i];
        else {
          b += a[i];
          ind = i - 1;
          break;
        }
      }
      if (b <= g)
        cout << 0 << " " << 0 << " " << 0 << endl;
      else {
        long long s = 0;
        for (i = 1; i <= ind; i++) s += a[i];
        if (s <= g)
          cout << 0 << " " << 0 << " " << 0 << endl;
        else
          cout << g << " " << s << " " << b << endl;
      }
    }
  }
  return 0;
}
