#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  for (int _ = 0; _ < t; _++) {
    int n, g = 1, s = 0, b = 0;
    cin >> n;
    vector<int> p(n);
    bool gold = true, ser = true;
    for (int i = 0; i < n; i++) cin >> p[i];
    int last = p[min(n - 1, n / 2)];
    for (int j = 2; j <= n / 2; j++) {
      int i = j - 1;
      if (p[i] == p[i - 1] && gold)
        g++;
      else if (p[i] != p[i - 1] && gold) {
        gold = false;
        s++;
      } else if (ser && p[i] == p[i - 1])
        s++;
      else if (ser && p[i] != p[i - 1]) {
        if (s <= g)
          s++;
        else {
          ser = false;
          b++;
        }
      } else if (p[i] != last)
        b++;
    }
    if (s <= g || b <= g)
      cout << "0 0 0" << endl;
    else
      cout << g << " " << s << " " << b << endl;
  }
}
