#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
const int MOD = 998244353;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> p(n);
    for (auto& x : p) cin >> x;
    vector<int> a;
    for (int i = 0; i < n / 2; i++) a.push_back(p[i]);
    while (a.size() && a.back() == p[n / 2]) a.pop_back();
    if (a.empty()) {
      cout << "0 0 0\n";
      continue;
    }
    vector<int> vals({1});
    for (int i = 1; i < a.size(); i++) {
      if (a[i - 1] != a[i]) vals.push_back(0);
      vals.back()++;
    }
    bool f = false;
    for (int i = 0, j = vals.size() - 1, sum1 = 0, sum2 = 0; i < j; i++) {
      sum1 += vals[i];
      while (i < j && sum2 <= sum1) sum2 += vals[j--];
      int sum3 = a.size() - sum1 - sum2;
      if (sum3 > sum1 && sum2 > sum1) {
        cout << sum1 << ' ' << sum3 << ' ' << sum2 << '\n';
        f = true;
        break;
      }
    }
    if (!f) cout << "0 0 0\n";
  }
  return 0;
}
