#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  long long i, j, k, l;
  while (t--) {
    long long g = 0, s = 0, b = 0;
    long long n;
    cin >> n;
    long long p[n];
    map<long long, long long> m;
    for (i = 0; i < n; i++) {
      cin >> p[i];
      m[p[i]]++;
    }
    i = n / 2 - 1;
    while (p[i] == p[n / 2]) {
      i--;
    }
    long long len = i + 1;
    j = 0;
    if (m[p[j]] < len / 2) {
      g = m[p[j]];
      j += m[p[j]];
      if (j < i + 1) {
        s = m[p[j]];
        b = i + 1 - (g + s);
      }
    }
    if ((s > 0 && b > 0) && g > 0) {
      cout << g << " " << s << " " << b << "\n";
    } else
      cout << "0 0 0"
           << "\n";
  }
}
