import java.util.*;
import java.io.*;
public class EdD {

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int t = Integer.parseInt(bf.readLine());
 		for(int i = 0;i<t;i++){
//	 		String input1 = bf.readLine().trim();
//	 		String input2 = bf.readLine().trim();
	 		int n = Integer.parseInt(bf.readLine());
	 		ArrayList<Integer> array = new ArrayList<Integer>();
	 		StringTokenizer st2 = new StringTokenizer(bf.readLine());
	 		for(int j=0;j<n;j++){
	 			array.add(Integer.parseInt(st2.nextToken()));
	 		}
	 		Collections.sort(array);
	 		int gold = 0;
	 		for(int j = array.size()-1;j>=0;j--){
	 			if (array.get(j).equals(array.get(n-1)))
	 				gold++;
	 			else
	 				break;
	 		}
	 		int silver = 0;
	 		int index = array.size()-gold-1;
	 		for(int j = array.size()-gold-1;j>=0;j--){
	 			if (array.get(j).equals(array.get(index)))
	 				silver++;
	 			else{
	 				if (silver <= gold){
	 					silver++;
	 					index = j;
	 					continue;
	 				}
	 				else{
	 					break;
	 				}
	 			}
	 		}
	 		int bronze = 0;
	 		int index1 = (array.size()+1)/2;
	 		while(index1 > 0 && index1 < array.size()-gold && array.get(index1).equals(array.get(index1-1)))
	 			index1++;
	 		
	 		if (array.size()-gold-silver-index1 > gold && silver > gold){
	 			out.println(gold + " " + silver + " " + (array.size()-gold-silver-index1));
	 		}
	 		else{
	 			out.println("0 0 0");
	 		}
 		}
 		
 		
 		out.println();
	 		
 		out.close();
 		
 		
 		
 	}
}
 	
 
//StringJoiner sj = new StringJoiner(" "); 
//sj.add(strings)
//sj.toString() gives string of those stuff w spaces or whatever that sequence is

 		
 		
 		
 		
	


