#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
int64 max(int64 a, int64 b) {
  if (b > a)
    return b;
  else
    return a;
}
int64 min(int64 a, int64 b) {
  if (b < a)
    return b;
  else
    return a;
}
signed main() {
  int64 t;
  cin >> t;
  for (int64 j = 0; j < t; j++) {
    int64 n;
    cin >> n;
    vector<int64> nums(n);
    map<int64, int64> mp;
    for (int64 i = 0; i < n; i++) {
      cin >> nums[i];
      mp[nums[i]]++;
    }
    int64 g = 0, s = 0, b = 0;
    g = mp[nums[0]];
    int64 i = mp[nums[0]];
    while (s <= g && i < n) {
      s += mp[nums[i]];
      i += mp[nums[i]];
    }
    if (i < n) {
      while (g + s + b + mp[nums[i]] <= n / 2) {
        b += mp[nums[i]];
        i += mp[nums[i]];
        if (i >= n) break;
      }
    }
    if (g < s && g < b)
      cout << g << " " << s << " " << b;
    else
      cout << "0 0 0";
    cout << endl;
  }
  return 0;
}
