#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, g = 0, s = 0, b = 0;
    cin >> n;
    long arr[n];
    for (int i = 0; i < n; i++) cin >> arr[i];
    g = 1;
    int x = 1, temp = arr[0];
    while (x < n / 2) {
      if (arr[x] == temp)
        g++;
      else
        break;
      x++;
    }
    while (x < n / 2) {
      s++;
      if (s > g) {
        temp = arr[x];
        x++;
        while (x < n / 2 && arr[x] == temp) {
          x++;
          s++;
        }
        break;
      }
      x++;
    }
    for (int y = (n / 2) - 1; y > x; y--) {
      if (arr[y] != arr[y + 1]) {
        b = y - x + 1;
        break;
      }
    }
    if (b > g && s > g && b + s + g <= n / 2)
      cout << g << " " << s << " " << b << endl;
    else
      cout << 0 << " " << 0 << " " << 0 << endl;
  }
  return 0;
}
