import java.util.*;
import java.util.stream.Collectors;

public class Main implements Runnable {

    private static int MOD = 1_000_000_007;

    public static void main(String[] args) {
        // Run with 32MB stack
        Thread thread = new Thread(null, new Main(), "", 32 * 1024 * 1024);
        thread.start();
    }

    @Override
    public void run() {
        final Scanner scanner = new Scanner(System.in);
        solve(scanner);
    }

    static void solve(Scanner scanner) {
        int N = Integer.parseInt(scanner.nextLine());

        for (int n = 0; n < N; n++) {
            int size = Integer.parseInt(scanner.nextLine());
            int[] arr = Arrays.stream(scanner.nextLine().split(" ")).map(Integer::parseInt)
                    .sorted(Comparator.comparingInt(x -> -x))
                    .mapToInt(x -> x)
                    .toArray();

            int g = -1, s = -1, b = -1;
            for (int i = 1; i <= arr.length / 2; i++) {
                if (arr[i - 1] != arr[i]) {
                    if (g == -1) {
                        g = i;
                    } else if (s == -1) {
                        s = i - g;
                    } else {
                        b = i - g - s;
                    }
                }
            }
            if (b == -1) {
                System.out.println("0 0 0");
            } else {
                System.out.printf("%d %d %d\n", g, s, b);
            }
        }
    }

}
