#include <bits/stdc++.h>
using namespace std;
int main() {
  int tt;
  cin >> tt;
  while (tt--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    int g = 0, s = 0, b = 0;
    int i = 0;
    int x = 0, y = 0, z = 0;
    map<int, int> m;
    for (int i = 0; i < n / 2; i++) {
      m[v[i]]++;
    }
    if (v[n / 2 - 1] == v[n / 2]) {
      m.erase(v[n / 2]);
    }
    if (m.size() < 3) {
      cout << 0 << " " << 0 << " " << 0 << endl;
    } else {
      x = m.rbegin()->second;
      auto it = m.rbegin();
      it++;
      while (y <= x && it != m.rend()) {
        y += it->second;
        it++;
      }
      while (it != m.rend()) {
        z += it->second;
        it++;
      }
      if (y <= x || z <= x) {
        cout << 0 << " " << 0 << " " << 0 << endl;
      } else {
        cout << x << " " << y << " " << z << endl;
      }
    }
  }
}
