#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
int64 max(int64 a, int64 b) {
  if (b > a)
    return b;
  else
    return a;
}
int64 min(int64 a, int64 b) {
  if (b < a)
    return b;
  else
    return a;
}
signed main() {
  int64 t;
  cin >> t;
  for (int64 i = 0; i < t; i++) {
    int64 n;
    cin >> n;
    vector<int64> nums(n);
    for (int64 i = 0; i < n; i++) cin >> nums[i];
    vector<int64> cnts;
    int64 cnt = 1, sum = 0;
    for (int64 i = 1; i < n; i++) {
      if (nums[i] != nums[i - 1]) {
        if (cnts.size() < 3) {
          if (cnts.size() >= 1) {
            if (cnts[0] >= cnt) {
              cnt++;
              continue;
            }
          }
          cnts.push_back(cnt);
          sum += cnt;
          cnt = 1;
        }
      } else
        cnt++;
    }
    if (cnts.size() < 3 || sum > (n / 2))
      for (int64 i = 0; i < 3; i++) cout << 0 << " ";
    else
      for (int64 i = 0; i < 3; i++) cout << cnts[i] << " ";
    cout << endl;
  }
  return 0;
}
