#include <bits/stdc++.h>
using namespace std;
int main() {
  int t = 1;
  cin >> t;
  while (t-- > 0) {
    vector<int> v;
    int n = 1;
    cin >> n;
    int ar[n], a, f = 0, sum = 0;
    for (int i = 0; i < n; ++i) {
      cin >> ar[i];
      if (i == 0) {
        a = ar[0];
        f = 1;
      } else if (ar[i] == a) {
        f += 1;
      } else {
        v.push_back(f);
        f = 1;
        a = ar[i];
      }
    }
    v.push_back(f);
    f = 0;
    for (auto i = v.begin(); i != v.end(); ++i) {
      sum += (*i);
      f += 1;
      if (sum > (n / 2)) {
        f--;
        break;
      }
    }
    if (f < 3)
      cout << "0 0 0" << endl;
    else {
      int g, s, b;
      g = s = b = 0;
      g = v.front();
      b = v.at(f);
      s = v.at(f / 2);
      if (f == 3) {
        if (g < b && g < s)
          cout << g << " " << s << " " << b << endl;
        else
          cout << "0 0 0" << endl;
      } else {
        b = s = 0;
        for (auto i = v.begin() + 1; i != v.begin() + (f / 2) + 1; ++i) {
          s += (*i);
        }
        for (auto i = v.begin() + (f / 2) + 1; i != v.begin() + f; i++) {
          b += (*i);
        }
        if (g < s && g < b)
          cout << g << " " << s << " " << b << endl;
        else
          cout << "0 0 0" << endl;
      }
    }
  }
  return 0;
}
