#include <bits/stdc++.h>
using namespace std;
int p[4 * 100100] = {0}, n, m;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    cin >> n;
    int g = 0, s = 0, b = 0, i, tmp, nums = n / 2;
    for (i = 0; i < n; i++) cin >> p[i];
    i = 0;
    tmp = p[i];
    while (nums && tmp == p[i]) {
      nums--;
      g++;
      i++;
    }
    tmp = p[i];
    while (nums && tmp == p[i]) {
      nums--;
      s++;
      i++;
    }
    while (nums > 0) {
      tmp = p[i];
      int x = 0;
      while (tmp == p[i]) {
        i++;
        x++;
      }
      if (x <= nums) {
        b += x;
      }
      nums -= x;
    }
    if (g == 0 || b == 0 || s == 0 || (g + s + b) > n / 2)
      cout << "0 0 0" << endl;
    else {
      cout << g << " " << s << " " << b << endl;
    }
  }
}
