#include <bits/stdc++.h>
using namespace std;
int main() {
  long long T;
  cin >> T;
  while (T--) {
    long long N;
    cin >> N;
    long long arr[N], g = 1;
    for (long long i = 0; i < N; i++) cin >> arr[i];
    while (g < N && arr[g] == arr[g - 1]) g++;
    long long s = 2 * g + 1;
    while (s < N && arr[s] == arr[s - 1]) s++;
    long long b = N / 2;
    while (arr[b] == arr[b - 1] && b > 0) b--;
    if (b - s > g)
      cout << g << " " << s - g << " " << b - s << endl;
    else
      cout << "0 0 0" << endl;
  }
}
