#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
long long inf = 1e18;
long long m_inf = INT_MIN;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  std::cout.unsetf(std::ios::fixed);
  std::cout.precision(9);
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> arr(n);
    for (long long i = 0; i < n; i++) cin >> arr[i];
    if (n < 5) {
      cout << 0 << ' ' << 0 << ' ' << 0 << '\n';
      continue;
    }
    long long g = 1;
    long long i = 1;
    long long temp = 0;
    while (i < n && arr[i - 1] == arr[i]) {
      i++;
      g++;
    }
    while (temp <= g) {
      i++;
      temp++;
    }
    while (i < n && arr[i - 1] == arr[i]) {
      temp++;
      i++;
    }
    if (temp + g > n / 2) {
      cout << "0 0 0" << '\n';
      continue;
    }
    long long b = 0;
    while (i < n / 2) {
      long long j = i + 1;
      long long k = 1;
      while (j < n && arr[j - 1] == arr[j]) {
        j++;
        k++;
      }
      if (j > n / 2) {
        break;
      } else {
        i = j;
        b += k;
      }
    }
    if (b > g) {
      cout << g << ' ' << temp << ' ' << b << '\n';
    } else
      cout << "0 0 0" << '\n';
  }
}
