
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();
        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);
                }
            }
            if (list.size() <= 3 || (list.get(0) + list.get(1) + list.get(2)) * 2 > n) {
                System.out.println("0 0 0");
            }
            else {
                System.out.print(list.get(0) + " " + list.get(1) + " ");
                int counter = 0;
                for (int k : list) {
                    if ((counter + k) * 2 > n) break;
                    counter += k;
                }
                System.out.println(counter - list.get(0) - list.get(1));
            }
        }
    }
}
