#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    unordered_map<long long, long long> freq;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      freq[a[i]]++;
    }
    if (n < 4) {
      cout << "0 0 0\n";
      continue;
    }
    long long g = freq[a[0]], s = 0, b = 0;
    long long i = freq[a[0]];
    while (i < n - 2 && s <= g) {
      s += freq[a[i]];
      i += freq[a[i]];
    }
    while (i < n - 1 && g + s + b <= n / 2) {
      b += freq[a[i]];
      i += freq[a[i]];
    }
    if (g + s + b > n / 2) {
      b -= freq[a[i - 1]];
    }
    if (g + s + b <= n / 2 && g < s && g < b && g > 0 && s > 0 && b > 0) {
      cout << g << " " << s << " " << b << "\n";
    } else {
      cout << "0 0 0\n";
    }
  }
  return 0;
}
