#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t;
  cin >> t;
  while (t-- > 0) {
    long long n;
    cin >> n;
    long long p[n];
    for (long long i = 0; i < n; i++) cin >> p[i];
    long long m[3];
    for (long long i = 0; i < 3; i++) m[i] = 0;
    if (n < 6) {
      cout << m[0] << " " << m[1] << " " << m[2] << endl;
    } else {
      long long sum = 0;
      for (long long i = 0; i < 3; i++) {
        long long eq = 0;
        long long t = (i == 0) ? 0 : m[0];
        for (long long j = sum; j < (n / 2); j++) {
          if (p[j] > p[j + 1]) {
            m[i]++;
            if (m[i] > t && i != 2) break;
          } else {
            eq = 0;
            m[i]++;
            eq++;
          }
        }
        sum += m[i];
        if (i == 2 && eq > 0) {
          eq++;
          if ((m[2] - eq) > t) m[2] -= eq;
        }
      }
      if (sum > n / 2 || m[0] == 0 || m[1] == 0 || m[2] == 0)
        cout << "0 0 0";
      else
        cout << m[0] << " " << m[1] << " " << m[2] << endl;
    }
  }
}
