#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0), cout.precision(10),
      cout << fixed;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> arr(n);
    for (int &x : arr) cin >> x;
    int m = n / 2 - 1;
    int g, s, b;
    g = s = b = 0;
    while (m >= 0 && arr[m] == arr[m + 1]) --m;
    int i = 0;
    while (i < m && arr[i] == arr[i + 1]) ++i;
    g = i + 1;
    int j = i + 1;
    while (j < m && (arr[j] == arr[j + 1] || j - i <= g)) ++j;
    s = j - i;
    b = m - j;
    if (g > 0 && s > 0 && b > 0 && g < b) {
      cout << g << ' ' << s << ' ' << b << '\n';
    } else {
      cout << "0 0 0\n";
    }
  }
  return 0;
}
