#include <bits/stdc++.h>
using namespace std;
namespace kotespace {
template <class T>
class duplet {
 private:
 public:
  T x, y;
  duplet(){};
  duplet(T a, T b) : x(a), y(b){};
  bool operator<(const duplet P) const {
    return (x < P.x || (x == P.x && y < P.y));
  }
  bool operator>(const duplet P) const {
    return (x > P.x || (x == P.x && y > P.y));
  }
  bool operator==(const duplet P) const { return (x == P.x && y == P.y); }
  bool operator!=(const duplet P) const { return (x != P.x || y != P.y); }
  void reverse() { std::swap(x, y); }
};
template <class P>
istream &operator>>(istream &in, duplet<P> &T) {
  return (in >> T.x >> T.y);
}
template <class P>
ostream &operator<<(ostream &out, duplet<P> T) {
  return (out << T.x << " " << T.y);
}
template <class T>
class triplet {
 private:
 public:
  T x, y, z;
  triplet(){};
  triplet(T a, T b, T c) : x(a), y(b), z(c){};
  bool operator<(const triplet P) const {
    return (x < P.x || (x == P.x && y < P.y) ||
            (x == P.x && y == P.y && z < P.z));
  }
  bool operator>(const triplet P) const {
    return (x > P.x || (x == P.x && y > P.y) ||
            (x == P.x && y == P.y && z > P.z));
  }
  bool operator==(const triplet P) const {
    return (x == P.x && y == P.y && z == P.z);
  }
  bool operator!=(const triplet P) const {
    return (x != P.x || y != P.y || z != P.z);
  }
  void reverse() { std::swap(x, z); }
  void cycle_right(int a) {
    if (a == 1) {
      std::swap(x, y);
      std::swap(x, z);
    }
    if (a == 2) {
      std::swap(x, z);
      std::swap(y, x);
    }
  }
  void cycle_left(int a) {
    if (a == 1) {
      std::swap(x, z);
      std::swap(y, x);
    }
    if (a == 2) {
      std::swap(x, y);
      std::swap(x, z);
    }
  }
};
template <class P>
istream &operator>>(istream &in, triplet<P> &T) {
  return (in >> T.x >> T.y >> T.z);
}
template <class P>
ostream &operator<<(ostream &out, triplet<P> &T) {
  return (out << T.x << " " << T.y << " " << T.z);
}
}  // namespace kotespace
using namespace kotespace;
long long inf = 1000 * 1000 * 1000 + 7;
long long inf64 = inf * inf;
long long mod = 228228227;
float START_TIME;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cerr << fixed << setprecision(10);
  cout << fixed << setprecision(10);
  srand(time(0));
  START_TIME = clock();
  int t;
  cin >> t;
  while (t-- > 0) {
    int n;
    cin >> n;
    vector<long long> a(n);
    for (int i = 0; i < n; ++i) cin >> a[i];
    vector<long long> b;
    for (int i = 0; i < n; ++i) {
      if (i == 0) {
        b.push_back(1);
      } else {
        if (a[i] == a[i - 1]) {
          ++b[b.size() - 1];
        } else {
          b.push_back(1);
        }
      }
    }
    long long gold = b[0], silv = 0, bronz = 0;
    int pos = b.size();
    for (int i = 1; i < b.size(); ++i) {
      silv += b[i];
      if (silv > gold) {
        pos = i + 1;
        break;
      }
    }
    for (int i = pos; i < b.size(); ++i) {
      bronz += b[i];
      if (2 * (gold + silv + bronz) > n) {
        bronz -= b[i];
        break;
      }
    }
    if (2 * (gold + bronz + silv) <= n) {
      if (gold < bronz && gold < silv) {
        cout << gold << " " << bronz << " " << silv << endl;
      } else {
        cout << 0 << " " << 0 << " " << 0 << endl;
      }
    } else {
      cout << 0 << " " << 0 << " " << 0 << endl;
    }
  }
  cerr << endl << (clock() - START_TIME) / CLOCKS_PER_SEC << " sec." << endl;
}
