#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n], g = 0, s = 0, b = 0;
    for (int i = 0; i < n; i++) cin >> a[i];
    if (n >= 10) {
      int j = 0;
      vector<int> occ;
      for (int i = 0; i < n; i++) {
        j = i;
        while (j < n && a[j] == a[i]) j++;
        occ.push_back(j - i);
        i = j - 1;
      }
      int mid = n / 2, k = 1, sz = occ.size();
      while (g + s + b <= mid) {
        g = occ.front();
        while (k < sz && s <= g) {
          s += occ[k];
          k++;
        }
        while (k < sz && g + s + b <= mid) {
          b += occ[k];
          k++;
        }
      }
      if (g + s + b > mid) b -= occ[k - 1];
      if (!(g < s && g < b)) g = 0, s = 0, b = 0;
    }
    cout << g << ' ' << s << ' ' << b << '\n';
  }
  return 0;
}
