#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  int n, m;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m;
    int j;
    for (j = 0; j < m; j++) {
      cin >> a[j];
    }
    int x, y, z, sum, ans, ans1;
    sum = m / 2;
    ans1 = ans = sum;
    while (a[ans - 1] == a[ans]) {
      ans--;
      if (ans == 0) break;
    }
    x = sum / 3 - 1;
    z = x + 1;
    y = sum - x - z;
    int t = 0;
    for (int k = x; k > 0; k--) {
      if (a[k] == a[k - 1]) t++;
    }
    x = x - t;
    if (t == x || ans1 < 5 || a[x * 2] == a[sum - 1 - x])
      x = y = z = 0;
    else {
      int o = 1;
      while (a[2 * x] == a[x * 2 + o]) o++;
      y = x + o;
      z = sum - x - y;
    }
    cout << x << " " << y << " " << z << endl;
  }
  return 0;
}
