#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n;
    cin >> n;
    vector<int> p(n);
    for (int i = 0; i < n; i++) cin >> p[i];
    vector<int> t;
    int count = 1;
    for (int i = 1; i < n; i++)
      if (p[i] == p[i - 1])
        count++;
      else {
        t.push_back(count);
        count = 1;
      }
    t.push_back(count);
    vector<int> m(3, 0);
    vector<int> sum(t.size());
    for (int i = 1; i < t.size(); i++) sum[i] = sum[i - 1] + t[i];
    int R = -1;
    for (int i = 0; i < t.size(); i++) {
      if (sum[i] > n / 2) {
        break;
      } else
        R = i;
    }
    m[0] = sum[0];
    int j;
    for (j = 1; j < R; j++)
      if (sum[j] - sum[0] > m[0]) break;
    if (j < R) m[1] = sum[j] - sum[0];
    m[2] = sum[R] - m[1] - m[0];
    if (m[2] <= m[0] || m[1] <= m[0])
      cout << "0 0 0" << endl;
    else
      for (int i = 0; i < 3; i++) cout << m[i] << " ";
    cout << endl;
  }
  return 0;
}
