#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int sss = 0; sss < t; sss++) {
    int n;
    cin >> n;
    int g = 0, gg = 0, ggg = 0, gggg = 0;
    int *a = new int[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (int i = (n / 2) - 1; i >= 0; i--) {
      if (a[i] > a[i + 1]) {
        g = i;
        break;
      }
    }
    for (int i = 1; i <= g; i++) {
      if (a[0] > a[i]) {
        gg = i;
        break;
      }
    }
    if (gg == 0) {
      cout << 0 << " " << 0 << " " << 0 << endl;
      continue;
    }
    for (int i = gg + gg; i <= g; i++) {
      if (a[gg + gg + 1] > a[i]) {
        ggg = i;
        break;
      }
    }
    ggg = ggg - gg;
    if (ggg == 0) {
      cout << 0 << " " << 0 << " " << 0 << endl;
      continue;
    }
    gggg = (g + 1) - gg - ggg;
    if ((ggg <= gg) || (gggg <= gg)) {
      cout << 0 << " " << 0 << " " << 0 << endl;
    } else {
      cout << gg << " " << ggg << " " << gggg << endl;
    }
  }
  return 0;
}
