#include <bits/stdc++.h>
using namespace std;
long long arr[400004];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int golden_medals = 0, silver_medals = 0, bronze_medals = 0;
    for (int i = 0; i < n; ++i) cin >> arr[i];
    n >>= 1;
    long long limit_for_golden = arr[0], limit_for_silver, limit_for_bronze;
    int index_ = 0;
    while (arr[index_] == limit_for_golden) {
      ++golden_medals;
      ++index_;
      if (index_ > n) break;
    }
    limit_for_silver = arr[index_];
    while (arr[index_] == limit_for_silver) {
      ++index_;
      if (index_ > n) break;
      if (silver_medals <= golden_medals) limit_for_silver = arr[index_];
      ++silver_medals;
    }
    int count_ = 0;
    if (n >= 2 && arr[n] == arr[n - 1]) {
      int pos = n;
      while (arr[n - 1] == arr[pos--] && pos > -1) {
        ++count_;
      }
      --count_;
    }
    bronze_medals = n - (silver_medals + golden_medals);
    bronze_medals -= count_;
    if (golden_medals < silver_medals && golden_medals < bronze_medals)
      cout << golden_medals << " " << silver_medals << " " << bronze_medals;
    else
      for (int i = 0; i < 3; ++i) cout << 0 << ' ';
    cout << '\n';
  }
}
