import java.io.*;
import java.util.*;
import java.util.regex.*;
public class contest
{
    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];
            for(i=0;i<n;i++) a[i]=Integer.parseInt(st.nextToken());
            int  limit=n/2,index=0;
            int first=a[limit];
            i=limit;
            while(i >=0 && a[i]==first) i--;
            limit=i;
            //pw.println(limit);
            long gold=0,silver=0,bronze=0;
            //first=a[0];
            for(i=0;i<=limit;i++)
            {
                if(a[i]==a[0] && index==0) { gold++;}
                else if(a[i]!=a[0] && index==0)
                {
                    index++;  
                }
                if(index==1 )
                {
                    if(silver <= gold) 
                    {
                        silver++;
                    }
                    else if(a[i]==a[i-1]) silver++;
                    else { index=2; }
                }
                if(index==2) bronze++;
            }
            if(bronze==0 || silver==0 || silver <= gold || bronze<=gold) pw.println("0 0 0");
            else pw.println(gold+" "+silver+" "+bronze);
        
        }
        
        pw.flush();
   	}
   	


}