import java.util.*;

public class KosyaReshaetZadachi {

    public static void main (String[] args) {
        Scanner scan = new Scanner(System.in);

        long t = scan.nextLong();

        for(int q = 0; q < t; q++) {
            int n = scan.nextInt();
            int arr[] = new int[n];

            for(int i = 0; i < n; i++) {
                arr[i] = scan.nextInt();
            }

            int maxMedal = n / 2;

            if(maxMedal < 3) {
                System.out.println("0 0 0");
                continue;
            }

            int[] same = new int[maxMedal];
            Arrays.fill(same, 0);

            int sameCount = 0;
            int totalMedal = maxMedal;
            same[0] = 1;

            for(int i = 1; i < maxMedal; i++) {
                if(arr[i] == arr[maxMedal + 1]){
                    totalMedal = i;
                    break;
                }
                if(arr[i - 1] != arr[i]){
                    sameCount++;
                }
                same[sameCount]++;
            }
            sameCount++;

//            System.out.println("-------- \n" + sameCount);
//            for(int i = 0; i < sameCount; i++) {
//                System.out.print(same[i] + " ");
//            }
//            System.out.println(" total " + totalMedal + " \n-----------");

            if(sameCount < 3) {
                System.out.println("0 0 0");
                continue;
            }

            int bronze = 0;
            int silver = 0;
            int gold = same[0];

            for(int i = 1; i < sameCount; i++) {
                if(silver <= gold) {
                    silver = silver + same[i];
                } else {
                    bronze = bronze + same[i];
                }
            }

            if(gold >= silver || gold >= bronze || bronze == 0 || silver == 0 || gold == 0){
                System.out.println("0 0 0");
            } else {
                System.out.println(gold + " " + silver + " " + bronze);
            }

        }

    }
}