//created by Whiplash99
import java.io.*;
import java.util.*;
public class A
{
    public static void main(String[] args) throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

        int i,N;

        int T=Integer.parseInt(br.readLine().trim());
        StringBuilder sb=new StringBuilder();

        while (T-->0)
        {
            N=Integer.parseInt(br.readLine().trim());
            int[] a=new int[N];
            String[] str=br.readLine().trim().split(" ");
            for(i=0;i<N;i++) a[i]=Integer.parseInt(str[i]);

            int g=1,s=0,b=0,cur=1;
            for(i=1;i<N;i++)
            {
                if(cur==1)
                {
                    if(a[i]==a[i-1]) g++;
                    else
                    {
                        cur++;
                        s++;
                    }
                }
                else if(cur==2)
                {
                    if(a[i]==a[i-1]) s++;
                    else if(s<=g) s++;
                    else
                    {
                        cur++;
                        b++;
                    }
                }
                else if(cur==3)
                {
                    if(a[i]==a[i-1]) b++;
                    else if(b<=g) b++;
                    else break;
                }
            }

            if((g+s+b>N/2)||(g==0||s==0||b==0)||(s<=g||b<=g))
            {
                sb.append(0).append(" ").append(0).append(" ").append(0).append("\n");
                continue;
            }

            for(i=N/2;i>0;i--) if(a[i]!=a[i-1]) break;
            sb.append(g).append(" ").append(s).append(" ").append(i-s-g).append("\n");
        }
        System.out.println(sb);
    }
}