#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    int g, s, b, i, cc = 1, in = 0, j = 0;
    g = s = b = 0;
    vector<int> c(n, 0);
    for (i = n / 2 - 1; i >= 0; i--) {
      if (a[i] != a[i + 1]) break;
    }
    j = i;
    for (i = i - 1; i >= 0; i--) {
      if (a[i] == a[i + 1]) {
        cc++;
        continue;
      } else {
        c[in] = cc;
        in++;
        cc = 1;
      }
    }
    c[in++] = cc;
    g = cc;
    if (in >= 3) {
      int k = 0;
      for (; k < in - 1; k++) {
        b += c[k];
        if (b > g) break;
      }
      for (k = k + 1; k < in - 1; k++) s += c[k];
      if (b > g && s > g)
        cout << g << " " << s << " " << b << "\n";
      else
        cout << "0 0 0\n";
    } else
      cout << "0 0 0\n";
  }
  return 0;
}
