#include <bits/stdc++.h>
using namespace std;
int solved[int(4e5) + 9];
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, g, s, b;
  int gp, sp, bp;
  int test;
  cin >> test;
  for (int tcase = 1; tcase <= test; tcase++) {
    cin >> n;
    g = 0, s = 0, b = 0;
    for (int i = 0; i < n; i++) {
      cin >> solved[i];
    }
    if (n <= 10) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    gp = solved[0];
    int i = 0;
    while (i < n / 2 && solved[i] == gp) {
      g++;
      i++;
    }
    sp = solved[i];
    while (i < n / 2 && solved[i] == sp) {
      s++;
      i++;
      if (s <= g && solved[i] != sp) sp = solved[i];
    }
    while (i < n / 2 && solved[i] > solved[n / 2]) {
      b++;
      i++;
    }
    if (g * s * b != 0 && g < s && g < b) {
      cout << g << " " << s << " " << b << "\n";
    } else
      cout << "0 0 0"
           << "\n";
  }
  return 0;
}
