#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<pair<long long, long long>> arr;
    for (long long i = 0, x; i < n; i++) {
      cin >> x;
      if ((long long)arr.size() == 0)
        arr.push_back({x, 1});
      else {
        if (arr.back().first == x)
          arr.back().second++;
        else
          arr.push_back({x, 1});
      }
    }
    long long g = 0, s = 0, b = 0;
    g = arr.front().second;
    long long i = 1;
    while (i < (long long)arr.size() && s <= g) {
      s += arr[i].second;
      i++;
    }
    while (i < (long long)arr.size() && s + g + b + arr[i].second <= n / 2) {
      b += arr[i].second;
      i++;
    }
    if (g > 0 && s > 0 && b > 0 && g < s && g < b && g + b + s <= n / 2) {
      cout << g << " " << s << " " << b << "\n";
    } else
      cout << "0 0 0\n";
  }
  return 0;
}
