import java.io.*;
import java.math.BigInteger;
import java.util.*;

public class Day9 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);
        int t = Integer.parseInt(reader.readLine());
        for(int q = 0; q < t; ++q){
            int n = Integer.parseInt(reader.readLine());
            StringTokenizer st = new StringTokenizer(reader.readLine());
            ArrayList<Integer> array = new ArrayList<>();
            for(int i = 0; i < n; ++i){
                array.add(Integer.parseInt(st.nextToken()));
            }
            int l = 0;
            int r = (n / 2) - 1;
            int ansg = 0;
            int anss = 0;
            int ansb = 0;
            int ind = 0;
            ArrayList<Integer> raz = new ArrayList<>();
            for(int i = 1; i < n; ++i){
                if(array.get(i).compareTo(array.get(i - 1)) != 0){
                    raz.add(i);
                }
            }
            if(raz.size() == 0){
                writer.println(0 + " " + 0 + " " + 0);
                continue;
            }
            ansg = raz.get(0);
            for(int j = 1; j < raz.size(); ++j){
                int kr = raz.get(j);
                if(kr > (n / 2)){
                    break;
                }
                if(anss - ansg <= ansg){
                    anss = kr;
                }
                else{
                    ansb = kr;
                }
            }
            if(ansg >= anss - ansg || ansg >= ansb - anss){
                writer.println(0 + " " + 0 + " " + 0);
            }
            else{
                writer.println(ansg + " " + (anss - ansg) + " " + (ansb - anss));
            }
        }
        writer.close();
    }
}