#include <bits/stdc++.h>
int a[400001];
int row[400001];
bool go() {}
int main(void) {
  int T;
  for (scanf("%d", &T); T--;) {
    int N;
    scanf("%d", &N);
    for (int i = 0; i < N; i++) scanf("%d", &a[i]);
    int temp = a[0], temp_row = 1, cnt = 0;
    for (int i = 1; i < N; i++) {
      if (temp != a[i]) {
        row[cnt++] = temp_row;
        temp_row = 1;
        temp = a[i];
      } else {
        temp_row++;
      }
    }
    row[cnt++] = temp_row;
    int g = row[0], s = 0, b = 0;
    for (int i = 1; i < cnt; i++) {
      if (g + s + b + row[i] > N / 2) break;
      if (s <= g)
        s += row[i];
      else
        b += row[i];
    }
    if (g + s + b > N / 2) g = s = b = 0;
    if (b <= g) g = s = b = 0;
    printf("%d %d %d\n", g, s, b);
  }
}
