#include <bits/stdc++.h>
using namespace std;
int main() {
  int tt;
  scanf("%d", &tt);
  while (tt--) {
    int n;
    scanf("%d", &n);
    vector<int> a;
    int pr = -1, cnt = 0;
    for (int i = 0; i < n; ++i) {
      int x;
      scanf("%d", &x);
      if (x == pr) {
        ++cnt;
      } else {
        if (cnt != 0) {
          a.push_back(cnt);
        }
        cnt = 1;
      }
      pr = x;
    }
    a.push_back(cnt);
    int sum = 0;
    int j = 0;
    while (j < (int)a.size() && 2 * (sum + a[j]) <= n) {
      sum += a[j];
      ++j;
    }
    if (j == 0) {
      puts("0 0 0");
      continue;
    }
    int g = a[0];
    int k = 1;
    int s = 0;
    while (k < j && s <= g) {
      s += a[k];
      ++k;
    }
    int b = 0;
    while (k < j) {
      b += a[k];
      ++k;
    }
    if (g >= s || g >= b) {
      puts("0 0 0");
      continue;
    }
    printf("%d %d %d\n", g, s, b);
  }
}
