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