#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    if (n < 10) {
      cout << "0"
           << " "
           << "0"
           << " "
           << "0" << endl;
    } else {
      int d = n / 2;
      set<int> s;
      int o;
      for (int i = 0; i < d; i++) {
        s.insert(a[i]);
      }
      if (a[d - 1] == a[d]) {
        o = s.size() - 1;
      } else {
        o = s.size();
      }
      if (o < 3) {
        cout << "0"
             << " "
             << "0"
             << " "
             << "0" << endl;
      } else {
        int f = 0;
        int g = 0;
        int q = 0;
        int u;
        int y;
        int team[o];
        for (int i = 0; i < o; i++) {
          team[i] = 0;
        }
        for (int i = 0; i < o; i++) {
          for (int j = f; j < d; j++) {
            if (a[j] == a[f]) {
              team[i]++;
            } else {
              break;
            }
          }
          f = f + team[i];
        }
        for (int i = 1; i < o; i++) {
          g += team[i];
          if (g > team[0]) {
            u = g;
            y = i;
            q = 1;
            break;
          }
        }
        if (q == 0) {
          cout << "0"
               << " "
               << "0"
               << " "
               << "0" << endl;
        } else
          g = 0;
        for (int i = y + 1; i < o; i++) {
          g += team[i];
        }
        if (g <= team[0]) {
          cout << "0"
               << " "
               << "0"
               << " "
               << "0" << endl;
        } else {
          cout << team[0] << " " << u << " " << g << endl;
        }
      }
    }
  }
}
