#include <bits/stdc++.h>
using namespace std;
const int MAXN = 4 * 10e5 + 10;
int tc;
int n, a[MAXN];
vector<int> marks;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> tc;
  while (tc--) {
    marks.clear();
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    int atual = a[1];
    for (int i = 1; i <= n / 2 + 1; i++)
      if (a[i] != atual) {
        marks.push_back(i - 1);
        atual = a[i];
      }
    if (marks.size() >= 3) {
      int a, b, c;
      a = b = c = -1;
      for (int i = 0; i < (int)marks.size(); i++) {
        if (a == -1)
          a = i;
        else if (b == -1) {
          if (marks[i] - marks[a] > marks[a]) b = i;
        } else
          break;
      }
      c = marks.size() - 1;
      if (a != -1 && b != -1 && c != -1 && b != c)
        cout << marks[a] << " " << marks[b] - marks[a] << " "
             << marks[c] - marks[b] << endl;
      else
        cout << "0 0 0\n";
    } else
      cout << "0 0 0\n";
  }
  return 0;
}
