import java.io.*;
import java.util.ArrayList;
import java.util.List;

public class BeautifulRegionalContest {
    public static void main(String[] args) throws Exception {
        // BufferedReader br = new BufferedReader(new FileReader(new File("input.txt")));
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        handleMultipleTestCases(br);
    }

    private static void handleMultipleTestCases(BufferedReader br) throws Exception {
        int T = readInt(br);
        for (int tc = 0; tc < T; tc++) {
            handleTestCase(br);
        }
    }

    private static void handleTestCase(BufferedReader br) throws Exception {
        int N = Integer.parseInt(br.readLine());
	int[] A = readArrInt(br);
	int[] GSB = getPrizeList(A,N);
	System.out.println(GSB[0]+" "+GSB[1]+" "+GSB[2]);
    }

    private static int[] getPrizeList(int[] A, int N) {
        int[] GSB = new int[3];
        int total = 0;
        for (int i = 0; i < N / 10; i++) {
            for (int j = i + 1; j < N / 2; j++) {
                for (int k = j + 1; k < N / 2; k++) {
                    if (A[i] > A[i + 1] && A[j] > A[j + 1] && A[k] > A[k + 1] && i + 1 < j - i && i + 1 < k - j) {
                        if (total < i + j - i + k - j) {
                            GSB = new int[]{i + 1, j - i, k - j};
                            total = Math.max(total, (i + (j - i) + (k - j)));
                        }
                    }
                }
            }
        }
        return GSB;
    }

    private static int readInt(BufferedReader br) throws Exception {
        return Integer.parseInt(br.readLine());
    }

    private static int[] readArrInt(BufferedReader br) throws Exception {
        String[] line = br.readLine().split(" ");
        int[] arr = new int[line.length];
        for (int i = 0; i < line.length; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        return arr;
    }

    private static List<Integer> readList(BufferedReader br) throws Exception {
        String[] line = br.readLine().split(" ");
        List<Integer> arr = new ArrayList<>();
        for (int i = 0; i < line.length; i++) {
            arr.add(Integer.parseInt(line[i]));
        }
        return arr;
    }

    private static void print(int[][] mat) {
        System.out.println("----------------------------------------");
        for (int i = 0; i < mat.length; i++) {
            System.out.print("{");
            for (int j = 0; j < mat[0].length; j++) {
                System.out.print(mat[i][j] + " ");
            }
            System.out.println("}");
        }
        System.out.println("----------------------------------------");
    }

    private static void print(int[] mat) {
        System.out.print("{");
        for (int i = 0; i < mat.length; i++) {
            System.out.print(mat[i] + " ");
        }
        System.out.println("}");
    }
}

