#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << "\n";
  err(++it, args...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin.tie(NULL);
  long long int n, m, t, i, j, k, ans = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long int> p(n);
    for (i = 0; i < n; i++) {
      cin >> p[i];
    }
    i = (n + 1) / 2 - 1;
    while (i > 0 and p[i] == p[(n + 1) / 2]) i--;
    if (i < 3) {
      cout << "0 0 0"
           << "\n";
      continue;
    }
    long long int g = 0, s = 0, b = 0, temp;
    for (j = 0; j < i; j++) {
      if (p[0] == p[j])
        g++;
      else
        break;
    }
    temp = j;
    for (; j < i; j++) {
      if (p[temp] == p[j])
        s++;
      else {
        if (s > g)
          break;
        else
          temp = j, s++;
      }
    }
    b = i - j + 1;
    if (g < b and g < s and g > 0)
      cout << g << " " << s << " " << b << "\n";
    else
      cout << "0 0 0"
           << "\n";
  }
  return 0;
}
