#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int T;
  int value[400005];
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    value[n] = -1;
    for (int i = 0; i < n; i++) cin >> value[i];
    vector<int> v;
    int count = 1;
    for (int i = 0; i < n; i++) {
      if (value[i] != value[i + 1]) {
        v.push_back(count);
        count = 1;
      } else
        count++;
    }
    int g = v[0], s = 0, b = 0;
    for (int i = 1; i < v.size(); i++) {
      if (s <= g)
        s += v[i];
      else {
        if (b <= g)
          b += v[i];
        else
          break;
      }
    }
    if (s + g + b > n / 2 || g >= b || g >= s)
      cout << "0 0 0\n";
    else
      cout << g << ' ' << s << ' ' << b << endl;
  }
}
