#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  ;
  long long n, ans = 0, k, m, j = 0, t = 1, x = 0, y = 0, c = 0, i, z = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    long long a[n];
    x = 0;
    y = 0;
    z = 0;
    j = 0;
    for (i = 0; i < n; i++) cin >> a[i];
    if (n < 5) {
      cout << "0 0 0\n";
      continue;
    }
    i = 1;
    while (a[i] == a[i - 1]) {
      if (i >= n - 1) {
        j = 1;
        break;
      }
      i++;
    }
    x = i;
    y = 2 * x + 1;
    i = y;
    if (i <= n - 1) {
      while (a[i] == a[i - 1]) {
        if (i >= n - 1) {
          j = 1;
          break;
        }
        y++;
        i++;
      }
    } else
      j = 1;
    z = y + x + 1;
    i = z;
    if (i <= n - 1) {
      while (a[i] == a[i - 1]) {
        if (i >= n - 1) {
          j = 1;
          break;
        }
        z++;
        i++;
      }
    } else
      j = 1;
    c = 0;
    for (i = n / 2; i > 0; i--) {
      if (a[i] == a[i - 1])
        c++;
      else
        break;
    }
    if (z > n / 2 || j == 1) {
      cout << "0 0 0\n";
    } else {
      cout << x << " " << y - x << " " << max(z, n / 2 - c) - y << "\n";
    }
  }
}
