#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n;
  int p[400000];
  cin >> t;
  for (int i = 1; i <= t; i++) {
    int g = 0, s = 0;
    cin >> n;
    for (int j = 1; j <= n; j++) {
      cin >> p[j];
      if (p[j] == p[1]) g++;
    }
    if (n >= 10 && 3 * g + 2 <= n / 2) {
      for (int k = g; k <= n / 2; k++) {
        if (p[k + 1] != p[k] && s > g)
          break;
        else
          s++;
      }
      if (2 * g + s <= n / 2)
        printf("%d %d %d\n", g, s, n / 2 - g - s);
      else
        cout << "0 0 0" << endl;
    } else
      cout << "0 0 0" << endl;
  }
  return 0;
}
