#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    long long int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    long long int mx = n / 2;
    if (mx < 5) {
      cout << "0 0 0\n";
      continue;
    }
    int i = 0;
    long long int g = 1, s = 0, b = 0;
    while (i + 1 < n) {
      if (a[i] != a[i + 1]) {
        i++;
        break;
      } else {
        g++;
      }
      i++;
    }
    mx -= g;
    while (i + 1 < n && s <= g) {
      long long int c = 1;
      while (i + 1 < n && a[i] == a[i + 1]) {
        c++;
        i++;
      }
      i++;
      s += c;
      mx -= c;
    }
    long long int bb = 0;
    while (i + 1 < n) {
      long long int c = 1;
      while (i + 1 < n && a[i] == a[i + 1]) {
        c++;
        i++;
      }
      i++;
      b += c;
      mx -= c;
      if (mx >= 0) {
        bb = b;
      } else {
        break;
      }
    }
    if (g + s + bb > n / 2 || g >= s || g >= b) {
      cout << "0 0 0\n";
    } else {
      cout << g << " " << s << " " << bb << "\n";
    }
  }
}
