#include <bits/stdc++.h>
using namespace std;
const int maxn = 4 * 1e5 + 7;
int a[maxn], ans[5];
int main() {
  int t;
  cin >> t;
  for (int xh = 1; xh <= t; xh++) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    a[n + 1] = 10 * maxn;
    for (int i = 1; i <= 3; i++) ans[i] = 0;
    int now = a[1];
    int i = 1;
    while (a[i] == now) i++;
    ans[1] = i - 1;
    now = a[i];
    int j = i;
    while (a[i] == now || i - j <= ans[1]) i++;
    ans[2] = i - j;
    if (i > n / 2) {
      cout << "0 0 0" << endl;
    } else {
      j = i;
      while (i < n / 2) i++;
      while (a[i] == a[i + 1]) i--;
      if (i < j) {
        cout << "0 0 0" << endl;
      } else
        cout << ans[1] << ' ' << ans[2] << ' ' << (i - j + 1) << endl;
    }
  }
}
