#include <bits/stdc++.h>
using namespace std;
string ch = "abcabc";
int t, n, v[400002], mx, mn, p[200002];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> v[i];
    }
    vector<int> seg;
    int i = 1;
    int last = 0;
    while (i <= n) {
      int j = i;
      while (j <= n && v[j] == v[i]) j++;
      j--;
      if (j > n / 2) break;
      last = j;
      seg.push_back(j - i + 1);
      i = j + 1;
    }
    int g = 0, s = 0, b = 0;
    if (seg.size() == 0) {
      cout << "0 0 0\n";
      continue;
    } else {
      int sum1, sum2;
      sum1 = seg[0];
      sum2 = seg[0];
      int j = 0;
      int ans = 0;
      for (int i = 0; i < seg.size(); i++) {
        sum2 -= seg[i];
        if (i == j) j++;
        while (j < seg.size() && sum2 <= sum1) {
          sum2 += seg[j];
          j++;
        }
        if (sum2 <= sum1) break;
        if (last - sum2 - sum1 <= sum1) break;
        g = sum1;
        s = sum2;
        b = last - sum1 - sum2;
        if (i + 1 < seg.size()) sum1 += seg[i + 1];
      }
    }
    cout << g << " " << s << " " << b << "\n";
  }
  return 0;
}
