#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, a, b, c, I = 0, p, k, M;
  cin >> t;
  for (int i = 0; i < t; i++) {
    cin >> n;
    int A[n];
    for (int y = 0; y < n; y++) {
      cin >> A[y];
    }
    a = 0;
    b = 0;
    c = 0;
    p = 2000000000;
    k = -1;
    I = 0;
    M = 0;
    while (a + b + c < n / 2) {
      if (A[I] == p) {
        if (k == 0) {
          a++;
        } else if (k == 1) {
          b++;
        } else {
          c++;
        }
      } else {
        if (k <= 1) {
          k++;
        } else {
          M = I;
        }
        if (k == 0) {
          a++;
        } else if (k == 1) {
          b++;
        } else {
          c++;
        }
        p = A[I];
      }
      I++;
    }
    if (M == 0) {
      cout << "0 0 0"
           << "\n";
    } else {
      cout << a << " " << b << " " << c << "\n";
    }
  }
  return 0;
}
