#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tt;
  cin >> tt;
  while (tt--) {
    int n;
    cin >> n;
    vector<int> p(n);
    for (int i = 0; i < n; ++i) {
      cin >> p[i];
    }
    int T = n / 2 - 1;
    if (p[T] == p[T + 1]) {
      for (; T >= 0; --T) {
        if (p[T] > p[T + 1]) break;
      }
    }
    vector<int> res(3, 0);
    int idx = 0;
    for (int i = 0; i <= T; ++i) {
      if (i > 0 && p[i] < p[i - 1]) {
        if (idx == 0)
          idx++;
        else if (idx == 1) {
          if (res[1] > res[0]) idx++;
        }
      }
      res[idx]++;
    }
    int g = res[0], s = res[1], b = res[2];
    if (g >= b || g >= s || b == 0) {
      cout << "0 0 0\n";
    } else {
      cout << g << " " << s << " " << b << "\n";
    }
  }
  return 0;
}
