#include <bits/stdc++.h>
using namespace std;
const long long MXN = 1e6 + 7;
const long long MOD = 1e9 + 7;
const long long INF = 2e18 + 7;
inline void Need_for_speed() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int q, a[MXN];
int main() {
  Need_for_speed();
  cin >> q;
  while (q--) {
    bool flag = true;
    int n, g = 0, s = 0, b = 0, mn;
    cin >> n;
    if (n < 10) {
      flag = false;
    }
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    for (int i = 1; i <= n / 2; i++) {
      if (a[i] == a[1] && a[i] > a[n / 2 + 1]) {
        g++;
      }
    }
    mn = a[g + 1];
    for (int i = g + 1; i <= n / 2; i++) {
      if (a[i] <= mn && s <= g) {
        mn = min(a[i], mn);
        s++;
      } else if (a[i] == mn && s > g) {
        s++;
      } else if (a[i] < mn && s > g) {
        break;
      }
    }
    for (int i = g + s + 1; i <= n / 2; i++) {
      if (a[i] > a[n / 2 + 1]) {
        b++;
      }
    }
    if (g >= s || g >= b || g + b + s > n / 2 || !g || !s || !b) {
      flag = false;
    }
    if (flag) {
      cout << g << ' ' << s << ' ' << b << endl;
    } else {
      cout << "0 0 0" << endl;
    }
  }
  exit(0);
}
