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