#include <bits/stdc++.h>
using namespace std;
void oor(int size, int iter) {
  if (iter >= size) {
    throw 5;
  }
}
void print(int* scores, int ppl) {
  int i = 0;
  int gold = scores[i];
  int golds = 0, silvers = 0;
  while (scores[i] == gold) {
    golds++;
    i++;
    oor(ppl, i);
  }
  int silver = scores[i];
  while (scores[i++] == silver) {
    silvers++;
    oor(ppl, i);
  }
  int bronzes = (ppl / 2) - (golds + silvers);
  while (golds >= silvers) {
    silvers++;
    bronzes--;
  }
  i = golds + silvers - 1;
  oor(ppl, i + 1);
  while (scores[i] == scores[i + 1]) {
    silvers++;
    bronzes--;
    i++;
    oor(ppl, i + 1);
  }
  i = (ppl / 2);
  while (scores[i] == scores[i - 1]) {
    bronzes--;
    i--;
  }
  if (golds + silvers + bronzes > ppl / 2) {
    throw 3;
  } else if (golds >= silvers || golds >= bronzes) {
    throw 1;
  } else if (golds > 0 && silvers > 0 && bronzes > 0) {
    std::cout << golds << " " << silvers << " " << bronzes << std::endl;
  } else {
    throw 2;
  }
}
int main() {
  int tests, ppl;
  cin >> tests;
  for (int x = 0; x < tests; ++x) {
    cin >> ppl;
    int* scores = new int[ppl];
    for (int y = 0; y < ppl; ++y) {
      cin >> scores[y];
    }
    try {
      print(scores, ppl);
    } catch (int i) {
      std::cout << "0 0 0" << std::endl;
    }
    delete[] scores;
  }
  return 0;
}
