#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int T;
  cin >> T;
  for (int test_case = 1; test_case <= T; ++test_case) {
    int n;
    cin >> n;
    int input[n + 1];
    for (int i = 1; i <= n; ++i) cin >> input[i];
    int idx = n / 2;
    while (idx >= 1 and input[n / 2 + 1] == input[idx]) --idx;
    int count_x = 0, count_y = 0, count_z = 0;
    for (int i = 2; i <= idx; ++i) {
      if (input[i] != input[i - 1]) {
        count_x = i - 1;
        break;
      }
    }
    if (count_x == 0) {
      cout << 0 << ' ' << 0 << ' ' << 0 << '\n';
      continue;
    }
    for (int i = count_x + 1; i <= idx; ++i) {
      ++count_y;
      if (input[i] != input[i - 1] and count_y - 1 > count_x) {
        --count_y;
        break;
      }
    }
    if (idx - (count_x + count_y) > count_x) {
      count_z = idx - (count_x + count_y);
    }
    if (count_x != 0 and count_y != 0 and count_z != 0) {
      cout << count_x << ' ' << count_y << ' ' << count_z << '\n';
    } else {
      cout << 0 << ' ' << 0 << ' ' << 0 << '\n';
    }
  }
}
