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