import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;

@SuppressWarnings("Duplicates")

public class ProblemC {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(System.out);
        Scanner sc = new Scanner(System.in);
        //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int testCases = sc.nextInt();
        for (int test = 0; test < testCases; test++) {
            int num = sc.nextInt();
            int[] score = new int[num];
            ArrayList<Integer> probs = new ArrayList<>();
            int proAux = sc.nextInt();
            int cant = 1;
            for (int i = 1; i < num; i++) {
                int aux = sc.nextInt();
                if (i > num/2)continue;
                if (aux == proAux){
                    cant++;
                } else {
                    probs.add(cant);
                    proAux = aux;
                    cant = 1;
                }
            }
            int scoresNum = probs.size();
            if (scoresNum==0){
                pw.println("0 0 0");
                continue;
            }
            int gold = probs.get(0);
            int posAux = 1;
            int silver = 0;
            while (silver<=gold && posAux<scoresNum){
                silver+=probs.get(posAux);
                posAux++;
            }
            int bronze = 0;
            while (posAux<scoresNum){
                bronze+=probs.get(posAux);
                posAux++;
            }

            if (bronze > gold && silver > gold){
                pw.println(gold+" "+silver+" "+bronze);
            } else {
                pw.println("0 0 0");
            }
        }
        pw.flush();
    }
}
