#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, t, x;
  cin >> t;
  while (t--) {
    cin >> n;
    int arr[n + 1], g = 0, s = 0, b = 0;
    for (int i = 1; i <= n; i++) cin >> arr[i];
    int i, j;
    for (i = 1; arr[i] == arr[1]; i++) g++;
    j = n / 2;
    while (arr[j] == arr[j + 1] && j >= 0) j--;
    b = j - i + 1;
    while ((g >= s || g >= b || (arr[i] == arr[i + 1])) && (i <= n / 2)) {
      b--;
      s++;
      i++;
    }
    if (g < s && g < b && (g + s + b) <= n / 2)
      cout << g << " " << s << " " << b << endl;
    else
      cout << "0 0 0" << endl;
  }
}
