#include <bits/stdc++.h>
using namespace std;
const long long mox = 4e5 + 9;
long long na[mox];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    for (long long i = 1; i <= n; i++) {
      cin >> na[i];
    }
    long long nk = 0;
    for (long long i = n / 2; i >= 1; i--) {
      if (na[i] != na[(n / 2) + 1]) {
        nk = i;
        break;
      }
    }
    long long gm = nk;
    for (long long i = 2; i <= nk; i++) {
      if (na[i] != na[i - 1]) {
        gm = i;
        break;
      }
    }
    long long sm = nk;
    for (long long i = (2 * gm); i <= nk; i++) {
      if (na[i] != na[i - 1]) {
        sm = i;
        break;
      }
    }
    if (nk - sm + 1 > gm - 1 && sm - gm > gm - 1 && gm - 1 > 0) {
      cout << gm - 1 << " " << sm - gm << " " << nk - sm + 1 << '\n';
    } else
      cout << 0 << " " << 0 << " " << 0 << '\n';
  }
}
