#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    long long g = 0, s = 0, b = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    if (n <= 3) {
      cout << "0 0 0" << endl;
      continue;
    }
    long long prev = a[0];
    long long i = 0;
    while (a[i] == prev) {
      g++;
      i++;
      if (i == n) break;
    }
    if (i == n) {
      cout << "0 0 0" << endl;
      continue;
    }
    long long ind;
    if (a[(n - 1) / 2] != a[(n - 1) / 2 + 1]) {
      prev = a[(n - 1) / 2];
      ind = (n - 1) / 2;
    } else {
      ind = (n - 1) / 2;
      prev = a[(n - 1) / 2];
      while (a[ind] == prev) {
        ind--;
        if (ind == -1) {
          break;
        }
      }
      if (ind == -1) {
        cout << "0 0 0" << endl;
        continue;
      }
      prev = a[ind];
    }
    long long ogind = ind;
    while (a[ind] == prev) {
      ind--;
      b++;
      if (ind == -1) {
        break;
      }
      if (g >= b) prev = a[ind];
    }
    if (ind == -1) {
      cout << "0 0 0" << endl;
      continue;
    }
    if (ind <= g) {
      cout << "0 0 0" << endl;
      continue;
    }
    s = ogind - b - g + 1;
    if (g >= s) {
      cout << "0 0 0" << endl;
      continue;
    }
    if (g + s + b > n / 2) {
      cout << "0 0 0" << endl;
    } else {
      cout << g << " " << s << " " << b << endl;
    }
  }
  return 0;
}
