#include <bits/stdc++.h>
using namespace std;
void func() {
  int n;
  cin >> n;
  vector<int> arr;
  int prev;
  cin >> prev;
  int cnt = 1;
  for (long long int i = 0; i < n - 1; i++) {
    int x;
    cin >> x;
    if (prev == x) {
      cnt++;
    } else {
      arr.push_back(cnt);
      cnt = 1;
      prev = x;
    }
  }
  arr.push_back(cnt);
  int g, s, b;
  g = 0;
  s = 0;
  b = 0;
  for (long long int i = 0; i < n; i++) {
    if (i == 0) {
      g += arr[i];
      continue;
    }
    if (g + s + b + arr[i] > n / 2) break;
    if (s <= g)
      s += arr[i];
    else
      b += arr[i];
  }
  if (g < s and g < b and s != 0 and b != 0)
    cout << g << " " << s << " " << b << "\n";
  else
    cout << "0 0 0\n";
}
int main() {
  int T;
  cin >> T;
  for (long long int _ = 0; _ < T; _++) func();
}
