#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using pairll = pair<ll, ll>;
int main() {
  ll t, n, tmp, g, s, b, p, cnt = 0;
  cin >> t;
  while (t--) {
    g = 0;
    s = 0;
    b = 0;
    cnt = 0;
    cin >> n;
    cin >> tmp;
    g++;
    p = tmp;
    for (ll i = 1; i < n; i++) {
      cin >> tmp;
      if (tmp == p) {
        if (s == 0) {
          g++;
        } else if (b == 0) {
          s++;
        } else {
          cnt++;
        }
      }
      if (tmp != p) {
        if (s == 0) {
          s = 1;
        } else if (s <= g) {
          s++;
        } else if (!b) {
          b = 1;
        } else if (b == 1 && cnt > 0) {
          b = b + cnt;
          cnt = 1;
        } else if (g + s + b + cnt <= n / 2) {
          b = b + cnt;
          cnt = 1;
        } else if (g + s + b > n / 2) {
          g = 0;
          s = 0;
          b = 0;
          i = n + 1;
        }
      }
      p = tmp;
    }
    if (b <= g) {
      g = 0;
      s = 0;
      b = 0;
    }
    cout << g << " " << s << " " << b << endl;
  }
}
