#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    int n, g = 0, s = 0, b = 0, flag;
    cin >> n;
    long long int a[n];
    int v1[n], v2[n];
    int size = 0, size1 = 0;
    for (int j = 0; j < n; ++j) {
      cin >> a[j];
    }
    v1[0] = 0;
    size++;
    for (int j = 0; j < n - 1; ++j)
      if (a[j] > a[j + 1]) {
        v1[size] = j;
        size++;
      }
    v1[size] = n - 1;
    for (int j = 1; j < size; ++j) {
      if (j == 1 && v1[j] + 1 <= n / 2) {
        v2[size1] = j;
        size1++;
      }
      if (j == 1 && v1[j] + 1 > n / 2) break;
      if (j != 1 && v1[j] + 1 <= n / 2) {
        v2[size1] = v1[j] - v1[j - 1];
        size1++;
      }
      if (j != 1 && v1[j] > n / 2) break;
    }
    if (size1 > 0) g = v2[0];
    int r = 0;
    for (int j = 1; j < size1 - 1; ++j) {
      if (s <= g) s += v2[j];
      r += v2[j];
    }
    b = r - s;
    if (g > 0 && s > 0 && b > 0 && b > g && s > g)
      cout << g << " " << s << " " << b << "\n";
    else
      cout << "0 0 0\n";
  }
}
