#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x, y, i, g, s, b, csum, cnt = 1;
    cin >> n;
    vector<int> f;
    cin >> x;
    for (int i = 1; i < n; i++) {
      cin >> y;
      if (y == x)
        cnt++;
      else {
        f.push_back(cnt);
        cnt = 1;
        x = y;
      }
    }
    if (cnt > 0) f.push_back(cnt);
    i = g = s = b = csum = 0;
    while (i < f.size()) {
      if (csum + f[i] <= n / 2) {
        csum += f[i++];
      } else
        break;
    }
    i--;
    if (i < 2) {
      cout << "0 0 0\n";
      continue;
    } else {
      g = f[0];
      int index = 1;
      while (index <= i && s <= g) s += f[index++];
      if (index > i || s <= g) {
        cout << "0 0 0\n";
        continue;
      }
      while (index <= i) b += f[index++];
      if (b <= g) {
        cout << "0 0 0\n";
        continue;
      }
      cout << g << " " << s << " " << b << endl;
    }
  }
}
