#include <bits/stdc++.h>
using namespace std;
long long arr[1050025];
signed main() {
  long long _;
  cin >> _;
  while (_--) {
    long long n;
    cin >> n;
    long long g = 0, s = 0, b = 0;
    for (long long i = 1; i <= n; i++) {
      scanf("%lld", &arr[i]);
    }
    if (n < 8) {
      printf("0 0 0\n");
      continue;
    }
    long long maxn_sum = n / 2;
    long long avg = maxn_sum / 3;
    long long sum_g = 1;
    long long sum_s = 1;
    long long sum_b = 1;
    long long now = 1;
    for (long long i = 1; i <= n && i <= maxn_sum; i++, now++) {
      if (arr[i] == arr[i + 1]) {
        sum_g++;
      } else {
        break;
      }
    }
    if (sum_g >= avg) {
      printf("0 0 0\n");
      continue;
    }
    g = sum_g;
    for (long long i = now + 1; i <= n && i <= maxn_sum; i++, now++) {
      if (sum_s <= sum_g) {
        sum_s++;
      } else {
        if (arr[i] == arr[i + 1]) {
          sum_s++;
        } else {
          break;
        }
      }
    }
    s = sum_s;
    sum_b = maxn_sum - g - s;
    b = sum_b;
    if (sum_b <= g) {
      printf("0 0 0\n");
      continue;
    }
    if (arr[maxn_sum] == arr[maxn_sum + 1]) {
      for (long long i = maxn_sum; i >= 1; i--) {
        if (arr[i] == arr[i - 1]) {
          b--;
        } else {
          b--;
          break;
        }
      }
    }
    if (b <= g) {
      printf("0 0 0\n");
      continue;
    }
    printf("%lld %lld %lld\n", g, s, b);
  }
  return 0;
}
