#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  for (int loop = 0; loop < (q); ++loop) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < (n); ++i) cin >> a[i];
    vector<pair<int, int> > v;
    for (int i = 0; i < (n); ++i) {
      if (i == 0) {
        v.push_back(pair<int, int>(a[i], 1));
      } else {
        if (v[v.size() - 1].first == a[i]) {
          v[v.size() - 1].second++;
        } else {
          v.push_back(pair<int, int>(a[i], 1));
        }
      }
    }
    int cnt = 0;
    int now = 0;
    while (cnt + v[now].second <= n / 2) {
      cnt += v[now].second;
      now++;
    }
    if (now < 3) {
      cout << "0 0 0" << endl;
    } else {
      int x = v[0].second;
      cnt -= x;
      int sum = 0;
      int flag = 0;
      for (int i = 1; i < now; ++i) {
        sum += v[i].second;
        if (x < sum && x < cnt - sum) {
          cout << x << ' ' << sum << ' ' << cnt - sum << endl;
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        cout << "0 0 0" << endl;
      }
    }
  }
  return 0;
}
