#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  for (int t = 0; t < T; t++) {
    int n;
    cin >> n;
    int p[n];
    for (int i = 0; i < n; ++i) {
      cin >> p[i];
    }
    int g, s, c;
    g = s = c = 0;
    int m = n / 2;
    int i = 0;
    while (i < m) {
      if (p[i] == p[0]) {
        ++g;
      } else {
        break;
      }
      ++i;
    }
    while (i < m) {
      if (g >= s) {
        ++s;
      } else {
        if (p[i] == p[i + 1]) {
          ++s;
        } else {
          break;
        }
      }
      ++i;
    }
    while (i < m) {
      if (g >= c) {
        ++c;
      } else {
        if (p[i] == p[i + 1]) {
          ++c;
        } else {
          break;
        }
      }
      ++i;
    }
    if (i < m) {
      int count = 0;
      int safe = 0;
      while (i < m) {
        ++count;
        if (p[i] > p[i + 1]) {
          safe = count;
        }
        ++i;
      }
      c += safe;
    } else {
      g = s = c = 0;
    }
    cout << g << " " << s << " " << c << endl;
  }
}
