#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
using pii = pair<long long, long long>;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) cin >> a[i];
    long long g, second, b;
    g = second = b = 0;
    long long ind = 0;
    while (ind < n && a[ind] == a[0]) ind++;
    if (ind >= n / 2) {
      cout << "0 0 0\n";
      continue;
    }
    g = ind;
    long long cur = a[ind], st = ind;
    while (ind < n && a[ind] == cur) ind++;
    if (ind - 1 >= n / 2) {
      cout << "0 0 0\n";
      continue;
    }
    cur = a[ind];
    while (ind < n && a[ind] == cur) ind++;
    if (ind - 1 >= n / 2) {
      cout << "0 0 0\n";
      continue;
    }
    second = ind - st;
    while (ind < n / 2) {
      cur = a[ind];
      st = ind;
      while (ind < n && a[ind] == cur) ind++;
      if (ind - 1 < n / 2)
        b += ind - st;
      else
        break;
    }
    if (g > 0 && second > 0 && b > 0 && g < second && g < b) {
      cout << g << " " << second << " " << b << "\n";
    } else {
      cout << "0 0 0\n";
    }
  }
  return 0;
}
