import java.io.*;
import java.util.*;
import java.util.regex.*;
public class vk18
{
    public static void main(String[]stp) throws Exception
    {
    	Scanner scan=new Scanner(System.in);
    	PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer(br.readLine());
        int q=Integer.parseInt(st.nextToken()),i;
        while(q-- > 0)
        {
        	st=new StringTokenizer(br.readLine());
        	int n=Integer.parseInt(st.nextToken()),p=0;
        	HashMap<Integer,Integer> hm=new HashMap<>();
        	st=new StringTokenizer(br.readLine());
        	//Integer a[]=new Integer[n];
        	for(i=0;i<n;i++)
        	{
        		p=Integer.parseInt(st.nextToken());
        		if(hm.containsKey(p))   hm.replace(p,hm.get(p)+1);
        		else hm.put(p,1);
        		
        	}
        	Object a[]=hm.keySet().toArray();
        	 Arrays.sort(a, Collections.reverseOrder());
        	if(n < 5) { pw.println("0 0 0 "); continue; }
        	int gold=hm.get(a[0]),silver=0,bronze=0;
        	i=1;
        	for(i=1;i<a.length && gold>=silver;i++) silver+=hm.get(a[i]);
        	for(i=i;i<a.length;i++)
        	{
        		if(gold+silver+bronze+hm.get(a[i]) > n/2) break;
        		else bronze+=hm.get(a[i]);
        	}
        	if(gold==0 || silver==0 || bronze==0 || gold>=silver || gold >= bronze) pw.println("0 0 0 ");
        	else pw.println(gold+" "+silver+" "+bronze);
        }
        pw.flush();
   	}
}

   