#include <bits/stdc++.h>
using namespace std;
int arr[400001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    vector<pair<int, int> > v;
    int n;
    cin >> n;
    int before = 0;
    int cnt = 1;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    before = arr[0];
    for (int i = 1; i < n; i++) {
      if (before == arr[i]) {
        cnt++;
      } else {
        v.push_back({before, cnt});
        cnt = 1;
        before = arr[i];
      }
    }
    v.push_back({before, cnt});
    int give = 0;
    int idx2 = v.size() - 1;
    for (int i = 0; i < v.size(); i++) {
      if (give + v[i].second > n / 2) {
        idx2 = i;
        break;
      } else {
        give += v[i].second;
      }
    }
    bool flag = false;
    if (idx2 <= 2) {
      cout << "0 0 0" << '\n';
      flag = true;
    }
    if (!flag) {
      int g = v[0].second;
      int s = 0;
      int d = 0;
      int idx = 0;
      for (int i = 1; i < idx2; i++) {
        s += v[i].second;
        idx = i;
        if (g < s) {
          break;
        }
      }
      for (int i = idx + 1; i < idx2; i++) {
        d += v[i].second;
      }
      if (g < s && g < d) {
        cout << g << " " << s << " " << d << '\n';
      } else {
        cout << "0 0 0" << '\n';
      }
    }
  }
  return 0;
}
