#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    long long int temp = 1;
    bool g = 0, s = 0, b = 0;
    long long int g1 = 0, s1 = 0, b1 = 0;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 1; i < n; i++) {
      if (a[i] == a[i - 1])
        temp++;
      else {
        if (!g) {
          if (temp > n / 2) {
            break;
          }
          g1 = temp;
          temp = 1;
          g = 1;
        } else {
          if (!s) {
            if (g1 + temp > n / 2) break;
            s1 += temp;
            temp = 1;
            if (s1 > g1) s = 1;
          } else {
            if (g1 + s1 + b1 + temp > n / 2) break;
            b1 += temp;
            temp = 1;
            if (b1 > g1) b = 1;
          }
        }
      }
    }
    if (g && s && b) {
      cout << g1 << " " << s1 << " " << b1 << endl;
    } else
      cout << 0 << " " << 0 << " " << 0 << endl;
  }
  return 0;
}
