#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int n;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) cin >> a[i];
    vector<int> vec;
    int sum = 0;
    vec.push_back(1);
    for (int i = 1; i < n; i++)
      if (a[i] == a[i - 1])
        vec.back()++;
      else
        vec.push_back(1);
    if (vec.size() < 3)
      cout << "0 0 0" << endl;
    else {
      int g = 0, second = 0, b = 0;
      g = vec[0];
      sum -= g;
      int i = 1;
      while (i < vec.size() && second <= g) second += vec[i], i++;
      while (i < vec.size()) b += vec[i], i++;
      if (g >= second || g >= b)
        cout << "0 0 0" << endl;
      else
        cout << g << " " << second << " " << b << endl;
    }
  }
}
