#include <bits/stdc++.h>
using namespace std;
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long tc;
  cin >> tc;
  while (tc--) {
    long long n;
    cin >> n;
    long long s = -1;
    long long g = -1;
    long long b = -1;
    vector<long long> v;
    for (long long i = 0; i < n; i++) {
      long long x;
      cin >> x;
      v.push_back(x);
    }
    g = 1;
    for (long long i = 1; i < n / 2; i++) {
      if (v[i] != v[i - 1]) {
        s = 1;
        for (long long j = i + 1; j < n / 2; j++) {
          if (s > g && v[j] != v[j - 1]) {
            if (v[j] == v[n / 2 - 1]) {
              b = -1;
              break;
            }
            b = 1;
            for (long long k = j + 1; k < n / 2; k++) {
              if (v[k] != v[n / 2]) {
                b++;
              } else {
                break;
              }
            }
            break;
          } else {
            s++;
          }
        }
        break;
      } else {
        g++;
      }
    }
    if (s == -1 || g == -1 || b == -1) s = 0, g = 0, b = 0;
    cout << g << " " << s << " " << b << endl;
  }
}
