#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n;
    vector<int> v;
    for (int i = 0; i < n; i++) {
      cin >> x;
      v.push_back(x);
    }
    if (n < 10)
      cout << "0 0 0" << endl;
    else {
      int max = n / 2;
      for (int i = max - 1; i >= 0; i--) {
        if (v[i] != v[i + 1]) {
          max = i + 1;
          break;
        }
      }
      int g = 0, s = 0, b = 0, tem = 0;
      for (int i = 0; i < max; i++) {
        g++;
        if (v[i] != v[i + 1]) break;
      }
      for (int i = g; i < max; i++) {
        s++;
        if ((s > g) && (v[i] != v[i + 1])) break;
      }
      b = max - g - s;
      if ((s < g) || (b < g))
        cout << "0 0 0" << endl;
      else {
        cout << g << " " << s << " " << b << endl;
      }
    }
  }
}
