#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int TC, i, j;
  TC = 1;
  cin >> TC;
  while (TC--) {
    long long int n, k, m;
    cin >> n;
    vector<int> a(n);
    for (i = 0; i < n; i++) cin >> a[i];
    map<int, int, greater<int>> mp;
    for (i = 0; i < n / 2; i++) {
      mp[a[i]]++;
    }
    if (a[n / 2 - 1] == a[n / 2]) mp.erase(a[n / 2]);
    if ((long long int)mp.size() <= 2) {
      cout << "0 0 0\n";
    } else {
      int g = 0, s = 0, b = 0, cnt = 0;
      for (auto x : mp) {
        if (cnt == 0)
          g = x.second;
        else if (g >= s)
          s += x.second;
        else
          b += x.second;
        cnt++;
      }
      if (g < s && g < b) {
        cout << g << ' ' << s << ' ' << b << '\n';
      } else
        cout << "0 0 0\n";
    }
  }
}
