#include <bits/stdc++.h>
using namespace std;
const int maxm = 2e5 + 5;
int a[maxm];
signed main() {
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    int ans[5] = {0};
    int now = a[1];
    int i = 1;
    while (i <= n) {
      if (a[i] != now) break;
      i++;
    }
    ans[1] = i - 1;
    now = a[i];
    while (i <= n) {
      if (a[i] == now) {
        i++;
      } else {
        if (i - 1 - ans[1] <= ans[1]) {
          now = a[i];
          i++;
        } else {
          break;
        }
      }
    }
    ans[2] = i - 1 - ans[1];
    now = a[i];
    while (i <= n) {
      if (a[i] == now) {
        i++;
      } else {
        if (i - 1 - ans[1] - ans[2] <= ans[1]) {
          now = a[i];
          i++;
        } else {
          break;
        }
      }
    }
    ans[3] = i - 1 - ans[1] - ans[2];
    i--;
    if (i * 2 > n) {
      cout << "0 0 0" << endl;
      continue;
    }
    if (ans[1] >= ans[2] || ans[1] >= ans[3]) {
      cout << "0 0 0" << endl;
    } else {
      cout << ans[1] << ' ' << ans[2] << ' ' << ans[3] << endl;
    }
  }
  return 0;
}
