#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n, g = 0, b = 0, s = 0;
    cin >> n;
    int a[n];
    for (int j = 0; j < (int)n; j++) {
      cin >> a[j];
    }
    int ct = 0, c = 0;
    for (int j = 0; j < n / 2; j++) {
      if (a[j] != a[j + 1]) ct++;
    }
    int flag = 0;
    if (ct >= 3) {
      g = 1;
      s = 1;
      for (int j = 0; j < (int)n / 2 - 1; j++) {
        if (flag == 0) {
          if (a[j] == a[j + 1])
            g++;
          else {
            flag = 1;
            j++;
          }
        }
        if (flag == 1)
          if (a[j] == a[j + 1])
            s++;
          else {
            if (s > g)
              break;
            else
              s++;
          }
      }
      int c = 0;
      if (a[n / 2 - 1] == a[n / 2]) {
        c = 1;
        for (int j = (int)n / 2 - 1; j >= 0; j--)
          if (a[j] == a[j - 1])
            c++;
          else
            break;
      }
      b = n / 2 - g - s - c;
    }
    if (g > b || g > s) {
      g = 0;
      s = 0;
      b = 0;
    }
    cout << g << " " << s << " " << b << endl;
  }
  return 0;
}
