#include <bits/stdc++.h>
using namespace std;
const int MAXN = 4e5 + 5;
int arr[MAXN], num[MAXN];
int main() {
  std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int T, n;
  cin >> T;
  while (T--) {
    int g = 0, s = 0, b = 0;
    cin >> n;
    for (int i = 0; i < n; i++) cin >> arr[i];
    int len = n / 2, cnt = 0;
    if (len >= 3) {
      int i;
      num[cnt++] = arr[0];
      map<int, int> m;
      m[arr[0]]++;
      for (i = 1; i < len; i++) {
        if (arr[i] != arr[i - 1]) num[cnt++] = arr[i];
        m[arr[i]]++;
      }
      while (i < n && arr[i] == arr[i - 1]) m[arr[i]]++, i++;
      g = m[num[0]];
      for (i = 1; i < cnt && s <= g; i++) s += m[num[i]];
      for (; i < cnt; i++) b += m[num[i]];
      int x = cnt;
      while (g + s + b > len) b -= m[num[--x]];
      if (g > 0 && s > 0 && g < b)
        cout << g << " " << s << " " << b << '\n';
      else
        cout << "0 0 0" << '\n';
    } else
      cout << "0 0 0" << '\n';
  }
  return 0;
}
