#include <bits/stdc++.h>
using namespace std;
signed main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int &i : a) cin >> i;
    if (n <= 3) {
      cout << "0 0 0\n";
      continue;
    }
    int half = (n - 1) / 2;
    while (half > 0) {
      if (a[half] == a[half + 1])
        half--;
      else
        break;
    }
    if (half <= 2) {
      cout << "0 0 0\n";
      continue;
    }
    map<int, int> m;
    for (int i = 0; i <= half; i++) m[a[i]]++;
    if (m.size() < 3) {
      cout << "0 0 0\n";
      continue;
    }
    vector<int> v;
    int sum = 0;
    for (auto it : m) {
      v.push_back(it.second);
      sum += it.second;
    }
    reverse(v.begin(), v.end());
    int gold = v[0];
    int silver = 0;
    for (int i = 1; i < v.size(); i++) {
      silver += v[i];
      if (silver > gold) break;
    }
    int bronze = sum - gold - silver;
    if (gold >= silver or gold >= bronze) {
      cout << "0 0 0\n";
    } else
      cout << gold << " " << silver << " " << bronze << "\n";
  }
}
