#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) cin >> a[i];
    int g = 0, s = 0, b = 0, ans = 0, m = n / 2;
    int x = a[0];
    g++;
    if (m <= 5)
      ans = -1;
    else {
      for (int i = 1; i < m; i++) {
        if (a[i] == x) {
          if (s == 0 && b == 0)
            g++;
          else if (s > 0 && b == 0)
            s++;
          else if (b > 0)
            b++;
        } else if (a[i] < x && b == 0 && s <= g) {
          s++;
          x = a[i];
        } else if (a[i] < x && s > g) {
          b++;
          x = a[i];
        }
      }
      for (int i = m - 1, j = m; i >= 0, j < n; i--, j++) {
        if (a[i] == a[j]) b--;
      }
    }
    if (ans == -1 || g >= b || g >= s || s <= 0 || b <= 0)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else
      cout << g << " " << s << " " << b << endl;
  }
}
