#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int te;
  cin >> te;
  while (te--) {
    long long int n, sum = 0, cnt = 1, ind, temp;
    cin >> n;
    vector<long long int> v(n);
    for (long long int i = 0; i <= n - 1; i++) cin >> v[i];
    vector<long long int> var;
    for (long long int i = 1; i <= n - 1; i++) {
      if (v[i - 1] == v[i])
        cnt++;
      else {
        var.push_back(cnt);
        cnt = 1;
      }
    }
    var.push_back(cnt);
    for (long long int i = 0; i <= var.size() - 1; i++) sum += var[i];
    temp = 0;
    long long int m = var.size();
    for (long long int i = 0; i <= m - 1; i++) {
      temp += var[i];
      if (temp > sum / 2) {
        ind = i - 1;
        break;
      }
    }
    if (ind == -1) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    var.erase(var.begin() + ind + 1, var.end());
    m = var.size();
    if (var.size() < 3) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    long long int g = 0, s = 0, b = 0;
    g = var[0];
    long long int i = 1;
    while (g >= s && i < m) {
      s += var[i];
      i++;
    }
    if (g >= s) {
      cout << "0 0 0"
           << "\n";
      continue;
    } else {
      for (long long int j = i; j <= m - 1; j++) {
        b += var[j];
      }
    }
    if (g >= b) {
      cout << "0 0 0"
           << "\n";
      continue;
    } else
      cout << g << " " << s << " " << b << "\n";
  }
}
