#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; ++i) cin >> a[i];
    int g = n, s = -1, b = -1;
    int l = 0, r = n / 2 - 1;
    while (l <= r) {
      int m = l + (r - l) / 2;
      if (a[m] >= a[0])
        l = m + 1;
      else
        g = m, r = m - 1;
    }
    l = 0, r = n / 2 - 1;
    while (l <= r) {
      int m = l + (r - l) / 2;
      if (a[m] > a[n / 2])
        b = m, l = m + 1;
      else
        r = m - 1;
    }
    if (g >= b) {
      cout << "0 0 0" << endl;
      continue;
    }
    for (s = g * 2; s < b - g; s++) {
      if (a[s] > a[s + 1]) break;
    }
    if (s >= b - g) {
      cout << "0 0 0" << endl;
      continue;
    }
    cout << g << " " << s - g + 1 << " " << b - s << endl;
  }
  return 0;
}
