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

public class problem3 {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(reader.readLine());
        for (int i = 0; i < t; i++) {
            int n = Integer.parseInt(reader.readLine());
            int[] arr = new int[n];
            StringTokenizer tokenizer = new StringTokenizer(reader.readLine());
            for (int j = 0; j < n; j++) {
                arr[j] = Integer.parseInt(tokenizer.nextToken());
            }
            int border = n/2;
            if(n < 6){
                System.out.println("0 0 0");
            }else{
                ArrayList<Integer> list = new ArrayList<>();
                int prev = arr[0];
                int c = 1;
                for(int j = 1 ; j < border;j++){
                    if(arr[j] == prev){
                        c++;
                    }else{
                        list.add(c);
                        prev = arr[j];
                        c = 1;
                    }
                    if(j == border - 1){
                        list.add(c);
                    }
                }
                if(arr[border] == arr[border - 1]){
                    list.remove(list.size() - 1);
                }
                if(list.size() < 3){
                    System.out.println("0 0 0");
                }else {
                    int G = list.get(0);
                    int m = list.size();
                    int S = list.get(1);
                    int B = 0;
                    for (int j = 2; j < m; j++) {
                        B += list.get(j);
                    }
                    if (G < S && G < B) {
                        System.out.println(G + " " + S + " " + B);
                    } else {
                        boolean flag = false;
                        for (int j = 2; j < m - 1; j++) {
                            S += list.get(j);
                            B -= list.get(j);
                            if (G < S && G < B) {
                                flag = true;
                                break;
                            }
                        }
                        if (flag) {
                            System.out.println(G + " " + S + " " + B);
                        } else {
                            System.out.println("0 0 0");
                        }
                    }
                }
            }
        }
    }
}
