#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
const long long int limit = 1000000;
void fc(long long int &x) {
  bool neg = false;
  register char c;
  x = 0;
  c = getchar();
  if (c == '-') {
    neg = true;
    c = getchar();
  }
  for (; (c > 47 && c < 58); c = getchar()) x = (x << 1) + (x << 3) + c - 48;
  if (neg) x *= -1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, q, t;
  long long int temp, temp1, temp2, temp3;
  long long int i, j, k, a, b, c;
  cin >> q;
  while (q--) {
    cin >> n;
    long long int arr[n];
    vector<long long int> ans;
    for (i = 0; i < n; i++) cin >> arr[i];
    if (n < 10) {
      cout << 0 << " " << 0 << " " << 0 << "\n";
      continue;
    }
    temp = 1;
    for (i = 1; i < n; i++) {
      if (arr[i] == arr[i - 1])
        temp++;
      else {
        ans.push_back(temp);
        temp = 1;
      }
    }
    ans.push_back(temp);
    temp = n / 2;
    temp1 = 0;
    for (i = 0; i < ans.size(); i++) {
      temp1 += ans[i];
      if (temp1 > temp) {
        temp1 -= ans[i];
        break;
      }
    }
    temp2 = i;
    a = 0;
    b = 0;
    c = 0;
    bool flag = 0;
    a = ans[0];
    j = 1;
    while (b <= a && j < i) {
      b += ans[j];
      j++;
    }
    while (c <= a && j < i) {
      c += ans[j];
      j++;
    }
    if (c > a) c = temp1 - a - b;
    if (a + b + c != temp1 || a == 0 || b <= a || c <= a) flag = 1;
    if (flag) {
      cout << 0 << " " << 0 << " " << 0 << "\n";
    } else {
      if (a + b + c != temp1) c = temp1 - a - b;
      cout << a << " " << b << " " << c << "\n";
    }
  }
}
