import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Freaks3 {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(br.readLine());
        StringBuffer rs = new StringBuffer();
        while (t-- > 0) {
            int n = Integer.parseInt(br.readLine());
            StringTokenizer st = new StringTokenizer(br.readLine(), " ");
            int a[] = new int[n];
            int ct = 1;
            a[0] = Integer.parseInt(st.nextToken());
            for (int i = 1; i < n; i++) {
                a[i] = Integer.parseInt(st.nextToken());
                if (a[i] != a[i - 1])
                    ct++;
            }
            if (n<6){
                rs.append("0 0 0\n");
                continue;
            }
            int b[][] = new int[ct][2];
            ct = 1;
            int c = 0;
            for (int i = 1; i < n; i++) {
                if (a[i - 1] == a[i]) {
                    ct++;
                } else {
                    b[c][0] = a[i-1];
                    b[c][1]=ct;
                    c++;
                    ct = 1;
                }
            }
            b[c][0] = a[n-1];
            b[c][1]=ct;
            int max = n / 2 - 1, maxid = max;
            if (a[max] == a[max + 1]) {
                for (int i = max; i >= 0; i--) {
                    if (a[i] != a[max]) {
                        maxid = i;
                        break;
                    }
                }
            }
            maxid++;
            int gold = b[0][1], silver = 0, id = 0;
            c = 1;
            while (silver < n / 2 - gold&&c<b.length) {
                silver += b[c][1];
                c++;
                if (silver > gold)
                    break;
            }
            int bronze = maxid - silver - gold;
            if (gold >= bronze || gold >= silver) {
                gold = silver = bronze = 0;
            } else if (bronze < 1) {
                gold = silver = bronze = 0;
            }
            rs.append(gold + " " + silver + " " + bronze + "\n");
        }
        System.out.println(rs);
    }
}