#include <bits/stdc++.h>
using namespace std;
signed main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long arr[n];
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    vector<long long> v;
    map<long long, long long> mp;
    v.push_back(arr[0]);
    mp[arr[0]]++;
    long long j = 0;
    for (long long i = 1; i < n / 2; i++) {
      if (arr[i] != v[j]) {
        v.push_back(arr[i]);
        j++;
      }
      mp[arr[i]]++;
    }
    if (arr[(n / 2) - 1] == arr[n / 2]) v.pop_back();
    if (v.size() < 3 or mp[v[0]] >= (n / 6)) {
      cout << "0 0 0"
           << "\n";
    } else {
      long long a, b = 0, c = 0;
      a = mp[v[0]];
      for (long long i = 1; i < v.size(); i++) {
        if (b <= a) {
          b += mp[v[i]];
        } else {
          c += mp[v[i]];
        }
      }
      if (a >= b or a >= c)
        cout << "0 0 0\n";
      else
        cout << a << " " << b << " " << c << "\n";
    }
  }
  return 0;
}
