
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author zye
 */
public class C {

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

        int t = scanner.nextInt();
        outer: for (int i = 0; i < t; i++) {
            int n = scanner.nextInt();
            int tmp = Integer.MAX_VALUE;
            List<Integer> list = new ArrayList<>();
            for (int j = 0; j < n; j++) {
                int tmptmp = scanner.nextInt();
                if (tmptmp == tmp) {
                    list.set(list.size() - 1, list.get(list.size() - 1) + 1);
                } else {
                    tmp = tmptmp;
                    list.add(1);
                }
            }
            
            int k = 1;
            int g = list.get(0);
            int s = 0;
            int b = 0;
            for (k = 1; k < list.size(); k++) {
                if ((g + s + list.get(k)) * 2 > n) {
                    System.out.println("0 0 0");
                    continue outer;
                }
                s += list.get(k);
                if (s > g) {
                    k++;
                    break;
                }
            }
            
            for ( ; k < list.size(); k++) {
                if ((g + s + b + list.get(k)) * 2 > n) {
                    break;
                }
                b += list.get(k);
            }
            if (g >= b)
                System.out.println("0 0 0");
            else {
                System.out.printf("%d %d %d\n", g, s, b);
            }
        }
    }
}
