#include <bits/stdc++.h>
using namespace std;
int arr[1000005];
int main() {
  int n, a, brr[5];
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &a);
    int ass = 0;
    for (int i = 0; i < a; i++) {
      scanf("%d", &arr[i]);
    }
    if (a >= 10) {
      int sum1 = arr[a / 2], sum3 = a / 2;
      for (int i = a / 2 - 1; i >= 0; i--) {
        if (arr[i] == sum1) {
          sum3--;
        } else if (arr[i] != sum1) {
          break;
        }
      }
      int sum = 0, sum2 = 0, ass = 0;
      sum1 = arr[0];
      for (int i = 0; i < a; i++) {
        sum2++;
        if (arr[i] != sum1 && sum == 0) {
          sum1 = arr[i];
          brr[sum] = sum2 - 1;
          sum++;
          sum2 = 1;
        } else if (arr[i] != sum1 && sum2 - 1 > brr[0] && sum != 0) {
          sum1 = arr[i];
          brr[sum] = sum2 - 1;
          sum++;
          sum2 = 1;
        } else if (arr[i] != sum1) {
          sum1 = arr[i];
        }
        if (sum == 3 && i > sum3) {
          ass = 1;
          printf("0 0 0\n");
          break;
        }
        if (sum == 3) {
          ass = 1;
          printf("%d %d %d\n", brr[0], brr[1], sum3 - brr[0] - brr[1]);
          break;
        }
      }
      if (ass == 0) {
        printf("0 0 0\n");
      }
    } else {
      printf("0 0 0\n");
    }
  }
  return 0;
}
