#include <bits/stdc++.h>
using namespace std;
long long power(long long a, long long b);
long long a[400001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long t = 1, i;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    map<long long, long long> m;
    for (long long i = 1; i <= n; i++) {
      cin >> a[i];
    }
    long long index = n / 2;
    long long count = 1;
    vector<long long> s;
    for (long long i = 2; i <= index + 1; i++) {
      if (a[i] != a[i - 1])
        s.push_back(count), count = 1;
      else
        count++;
    }
    if (s.size() < 3)
      cout << "0"
           << " "
           << "0"
           << " "
           << "0"
           << "\n";
    else {
      long long sum = 0;
      for (long long i = 1; i < s.size(); i++) sum += s[i];
      long long gold = s[0];
      long long silver = 0, bronze = 0;
      long long flag = 0;
      for (long long i = 1; i < s.size(); i++) {
        if (gold >= silver) {
          silver += s[i];
        } else {
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        cout << "0"
             << " "
             << "0"
             << " "
             << "0"
             << "\n";
      } else {
        bronze = sum - silver;
        if (gold >= bronze)
          cout << "0"
               << " "
               << "0"
               << " "
               << "0"
               << "\n";
        else
          cout << gold << " " << silver << " " << bronze << "\n";
      }
    }
  }
  return 0;
}
long long power(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b % 2)
      b--, res = res * a;
    else
      b = b / 2, a *= a;
  }
  return res;
}
