#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
const int maxn = 4e5 + 5;
int arr[maxn];
int main() {
  int t = read();
  while (t--) {
    int n = read(), pre = 1e9, tot = 0;
    for (int i = 1; i <= n; i++) {
      int tem = read();
      if (tem != pre)
        tot++, pre = tem, arr[tot] = 1;
      else
        arr[tot]++;
    }
    int all = 0, g = arr[1], s = 0, b = 0;
    for (int i = 1; i <= tot; i++)
      if (all + arr[i] <= n / 2)
        all += arr[i];
      else
        break;
    int index = 2;
    while (s <= g && index <= tot) {
      s += arr[index];
      index++;
    }
    b = all - g - s;
    if (b <= g)
      cout << "0 0 0\n";
    else
      cout << g << " " << s << " " << b << endl;
  }
  return 0;
}
