#include <bits//stdc++.h>

using namespace std;
typedef long long int lld;
const int N = 4 * 1e5 + 10;

int main()
{
    // ios_base::sync_with_stdio(false);
    // cin.tie(NULL);
    int t;
    cin >> t;
    
    while (t--) {

        // Taking Input
        int n;
        cin >> n;
        int p[n];
        for (int i = 0; i < n; i++)
            cin >> p[i];
        
        // Evaluating Cnt
        int cnt[n] = {0}, prev, index = 0;
        prev = p[0];
        cnt[0] = 1;
        for (int i = 1; i < n; i++) {
            if (p[i] != prev)
                index++;
            cnt[index]++;
        }
        
        int g = cnt[0], b = 0, s = 0;
        
        int ind = 1;
        while (s <= g && ind < index)
            s += cnt[ind++];
        
        while (g + s + b <= n / 2 && ind < index)
            b += cnt[ind++];
        b -= cnt[ind - 1];

        if (b <= g)
            cout << "0 0 0\n";
        else
            cout << g << " " << s << " " << b << "\n";
    }
    return 0;
}