#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 + b + c == n / 2) {
        if (k == 2 && p != A[I]) {
          M = a + b + c;
        }
        break;
      }
      if (A[I] == p) {
        if (k == 0) {
          a++;
        } else if (k == 1) {
          b++;
        } else {
          c++;
        }
      } else {
        if (k <= 1) {
          if (k == 1 && b > a) {
            k++;
          } else if (k != 1) {
            k++;
          }
        } else {
          M = a + b + c;
        }
        if (k == 0) {
          a++;
        } else if (k == 1) {
          b++;
        } else {
          c++;
        }
        p = A[I];
      }
      I++;
    }
    if (M == 0 || M - a - b <= a) {
      cout << "0 0 0"
           << "\n";
    } else {
      cout << a << " " << b << " " << M - a - b << "\n";
    }
  }
  return 0;
}
