#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    vector<long long int> v(n);
    for (long long int i = 0; i < n; i++) cin >> v[i];
    long long int p1, p2, p3;
    p3 = n / 2 - 1;
    while (v[p3 + 1] == v[p3] && p3 > 0) {
      p3--;
    }
    p1 = 0;
    for (long long int i = 1; i < n; i++) {
      if (v[i] == v[i - 1])
        p1++;
      else {
        break;
      }
    }
    long long int val = p1 + 1;
    p2 = 2 * p1 + 2;
    if (p2 >= p3 || p3 <= 0) {
      cout << 0 << " " << 0 << " "
           << " " << 0 << endl;
      continue;
    }
    while ((v[p2] == v[p2 + 1]) && (p2 < p3)) p2++;
    long long int g, s, b;
    g = p1 + 1;
    s = p2 - p1;
    b = p3 - p2;
    if (g > 0 && s > 0 && b > 0 && g < s && g < b)
      cout << g << " " << b << " " << s << endl;
    else {
      cout << 0 << " " << 0 << " " << 0 << endl;
    }
  }
}
