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