#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, num;
    cin >> n;
    vector<int> arr(n);
    for (int i = 0; i < n; i++) {
      cin >> num;
      arr[i] = num;
    }
    int mid = n / 2;
    if (mid <= 2)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else {
      int flag = 0;
      int g = 0, s = 0, b = 0;
      int gval = arr[0];
      int gi = 0;
      while (arr[gi] == gval) {
        g++;
        gi++;
      }
      int bi = mid - 1;
      while (bi >= 0 && arr[bi] == arr[mid]) {
        bi--;
      }
      int bval = arr[bi];
      while (bi >= 0 && arr[bi] == bval) {
        bi--;
        b++;
      }
      if (gi >= bi)
        flag = 1;
      else {
        s = bi - gi + 1;
        if (g > s)
          flag = 1;
        else if (g >= b) {
          while (bi > gi && b <= g) {
            bval = arr[bi];
            while (bi >= gi && arr[bi] == bval) {
              b++;
              bi--;
            }
          }
          s = bi - gi + 1;
          if (g > s) flag = 1;
        }
      }
      if (flag == 0)
        cout << g << " " << s << " " << b << endl;
      else
        cout << 0 << " " << 0 << " " << 0 << endl;
    }
  }
  return 0;
}
