//package com.company;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static int[] solve(int n, int[] p) {
        if (n < 6) {
            return new int[] { 0, 0, 0 };
        }
        int i = 0;
        int g = 0;
        int s = 0;
        int b = 0;
        int middle = p[n / 2];

        while (i < n / 2) {
            if (g == 0 || (s == 0 && 0 < i && p[i - 1] == p[i])) {
                g++;
            } else if (s == 0 || s <= g || (b == 0 && p[i - 1] == p[i])) {
                s++;
            } else if (middle < p[i]) {
                b++;
            }
            i++;
        }

        if (g == 0 || s == 0 || b == 0 || b < g) return new int[] { 0, 0, 0 };

        return new int[] { g, s, b };
    }

//    static void test(int n, int[] p, int[] expected) {
//        int[] result = solve(n, p);
//        if (!Arrays.equals(result, expected)) {
//            throw new Error(Arrays.toString(result));
//        }
//    }

    static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {
        int t = scanner.nextInt();

        for (int i = 0; i < t; i++) {
            int n = scanner.nextInt();

            int[] a = new int[n];
            for (int j = 0; j < n; j++) {
                a[j] = scanner.nextInt();
            }

            int[] r = solve(n, a);

            System.out.println(r[0] + " " + r[1] + " " + r[2]);
        }

//        test(12, new int[] { 5, 4, 4, 3, 2, 2, 1, 1, 1, 1, 1, 1 }, new int[] { 1, 2, 3 });
//        test(4, new int[] { 4, 3, 2, 1 }, new int[] { 0, 0, 0 });
//        test(32, new int[] { 64, 64, 63, 58, 58, 58, 58, 58, 37, 37, 37, 37, 34, 34, 28, 28, 28, 28, 28, 28, 24, 24, 19, 17, 17, 17, 17, 16, 16, 16, 16, 11, }, new int[] { 2, 6, 6 });
//        test(20, new int[] { 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }, new int[] { 2, 5, 3 });

//        test(new int[] { 3, 1, 2 }, new int[] { 3, 2, 1 }, 5);
//        test(new int[] { 2, 1, 7, 3, 4, 5, 6 }, new int[] { 3, 1 }, 8);

    }
}
