#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int p[n + 1], i, j, k;
    for (i = 1; i <= n; i++) cin >> p[i];
    i = n / 2;
    if (p[n / 2] == p[n / 2 + 1]) {
      while (i >= 1 && p[i] == p[i + 1]) i--;
    }
    k = i;
    if (k == 0) {
      cout << "0 0 0\n";
      continue;
    }
    long long int gold = 0, sil = 0, brz = 0;
    for (i = 1; i <= k - 1; i++) {
      gold++;
      if (p[i] != p[i + 1]) break;
    }
    for (i = i + 1; i <= k - 1; i++) {
      sil++;
      if (sil > gold && p[i] != p[i + 1]) break;
    }
    for (i = i + 1; i <= k; i++) brz++;
    if (brz > 0 && gold < sil && gold < brz)
      cout << gold << " " << sil << " " << brz << endl;
    else
      cout << "0 0 0\n";
  }
}
