#include <bits/stdc++.h>
int main() {
  int T;
  std::cin >> T;
  for (int kase = 1; kase <= T; kase++) {
    int n;
    std::cin >> n;
    std::vector<int> a(n);
    for (int i = 0; i < n; i++) std::cin >> a[i];
    std::vector<int> pre;
    for (int i = 0, j = 0, sum = 0; i < n; i = j) {
      while (j < n && a[i] == a[j]) j++;
      if (n < 2 * (sum + j - i)) break;
      sum = sum + j - i;
      pre.push_back(sum);
    }
    if (pre.empty()) {
      std::cout << "0 0 0\n";
      continue;
    }
    auto it = std::upper_bound(pre.begin(), pre.end(), pre[0] * 2);
    if (it != pre.end() && pre[0] < pre.back() - *it)
      std::cout << pre[0] << " " << *it - pre[0] << " " << pre.back() - *it
                << "\n";
    else
      std::cout << "0 0 0\n";
  }
  return 0;
}
