#include <bits/stdc++.h>
using namespace std;
long long n, m, i, j, a[400005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 0; i < n; i++) {
      cin >> a[i];
    }
    long long ptr = n / 2 - 1;
    bool S = true;
    long long g = 0, s = 0, b = 0, cur = -1, elem = 0;
    for (i = 0; i <= ptr; i++) {
      if (a[i] == a[0])
        g++;
      else {
        if (cur == -1) cur = a[i];
        if (a[i] == cur) {
          elem++;
          if (S)
            s++;
          else
            b++;
        } else {
          if (s > g) S = false;
          cur = a[i];
          if (S)
            s++;
          else
            b++;
          elem = 1;
        }
      }
    }
    if (a[ptr] == a[ptr + 1]) b -= elem;
    if (g >= s || g >= b)
      cout << "0 0 0" << endl;
    else
      cout << g << " " << s << " " << b << endl;
  }
}
