#include <bits/stdc++.h>
using namespace std;
int t, n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> t;
  string s;
  while (t--) {
    cin >> n;
    vector<int> v(n + 1);
    int mx = 0;
    int g = 0, s = 0, b = 0;
    for (int i = 1; i <= n; i++) {
      cin >> v[i];
      if (i == n / 2 + 1) mx = v[i];
    }
    for (int i = 1; i <= n / 2; i++) {
      if (!g) {
        g++;
        for (int j = i + 1; j <= n / 2; j++) {
          if (v[i] != v[j]) {
            i = j - 1;
            break;
          }
          g++;
          i = j - 1;
        }
      } else if (g >= s) {
        s++;
        for (int j = i + 1; j <= n / 2; j++) {
          if (v[i] != v[j]) {
            i = j - 1;
            break;
          }
          s++;
          i = j - 1;
        }
      } else {
        if (v[i] == mx) break;
        b++;
      }
    }
    if (!g || !s || !b || g >= s || g >= b)
      cout << "0 0 0\n";
    else
      cout << g << " " << s << " " << b << "\n";
  }
}
