#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long ar[n];
    for (long long i = 0; i < n; i++) {
      cin >> ar[i];
    }
    long long cnt = 1;
    for (long long i = 1; i < n; i++) {
      if (ar[i] == ar[0]) {
        cnt++;
      } else
        break;
    }
    if (cnt + 2 > n / 2) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    long long cnt2 = 1;
    for (long long i = cnt + 1; i < n; i++) {
      if (ar[i] == ar[cnt]) {
        cnt2++;
      } else
        break;
    }
    if (cnt2 <= cnt) {
      for (long long i = cnt + cnt2; i < n; i++) {
        cnt2++;
        while (ar[i + 1] == ar[i] && i < n - 1) {
          cnt2++;
          i++;
        }
        if (cnt2 > cnt) {
          break;
        }
      }
    }
    if (cnt2 + cnt + 1 > n / 2 || cnt2 <= cnt) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    long long cnt3 = 1;
    for (long long i = cnt + cnt2 + 1; i < n; i++) {
      if (ar[i] == ar[cnt + cnt2]) {
        cnt3++;
      } else
        break;
    }
    if (cnt + cnt2 + cnt3 > n / 2) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    long long y = ar[n / 2];
    long long x = cnt3;
    for (long long i = n / 2 - 1; i >= cnt + cnt2 + x; i--) {
      if (ar[i] != y) {
        cnt3++;
      }
    }
    if (cnt >= cnt2 || cnt >= cnt3) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    cout << cnt << " " << cnt2 << " " << cnt3 << "\n";
  }
}
