#include <bits/stdc++.h>
int main() {
  int T;
  std::cin >> T;
  while (T--) {
    std::vector<int> pai;
    int n;
    std::cin >> n;
    pai.resize(n);
    int g = 0, s = 0, b = 0;
    int now = 0;
    for (int i = 0; i < n; ++i) {
      std::cin >> pai[i];
      if (now == 0) {
        if (g == 0) {
          g++;
        } else if (pai[i] == pai[i - 1]) {
          g++;
        } else {
          s++;
          now++;
        }
      } else if (now == 1) {
        if (s == 0) {
          s++;
        } else if (pai[i] == pai[i - 1]) {
          s++;
        } else if (s <= g) {
          s++;
        } else {
          now++;
        }
      }
    }
    int count = 0;
    for (int i = g + s; i <= (n) / 2; ++i) {
      if (count == 0) {
        ++count;
      } else {
        if (pai[i] == pai[i - 1]) {
          count++;
        } else {
          b += count;
          count = 1;
        }
      }
    }
    if (g < s && g < b) {
      std::cout << g << " " << s << " " << b << std::endl;
    } else {
      std::cout << 0 << " " << 0 << " " << 0 << std::endl;
    }
  }
}
