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());
            st=new StringTokenizer(br.readLine());
            Integer a[]=new Integer[n];
            Integer count[]=new Integer[n];
            for(i=0;i<n;i++) a[i]=Integer.parseInt(st.nextToken());
            if(n<5) { pw.println("0 0 0"); continue;}
            Arrays.fill(count,0);
        	count[0]=1;
        	int p=0;
        	for(i=1;i<n;i++)
        	{
        		if(a[i]==a[i-1]) count[p]++;
        		else
        		{
        			p++;
        			count[p]=1;
        		}
        	}
        	//for(i=0;i<=p;i++) pw.println(count[i]);
        	int sum=0;
        	for(i=0;i<=p;i++)
        	{
        		if(sum < n/2)sum+=count[i];
        		else break;
        	}
        	if(sum > n/2) sum-=count[i-1];
        	int limit=i-1;
        	int gold=count[0],silver=0,bronze=0;
        	i=1;
        	while(gold+silver+bronze!=sum && i<=p)
        	{
        		if(silver <= gold) silver+=count[i];
        		else bronze+=count[i];
        		i++;
        	}
        	if(silver==0 || bronze==0 || silver <= gold || bronze <= gold) pw.println("0 0 0 ");
        	else pw.println(gold+" "+silver+" "+bronze);
        	//pw.println(sum);
        
        }
        
        pw.flush();
   	}
   	


}