import java.util.*;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.IntToLongFunction;
import java.lang.*;
import java.io.*;
import java.math.*;
public final class CF
{
    public static void main(String[]args)throws IOException
    {
        FastReader ob=new FastReader();
        int t=ob.nextInt();
        StringBuffer sb=new StringBuffer();
        while(t-->0)
        {
            int n=ob.nextInt();
            ArrayList<Pair> a=new ArrayList<>();
            int count=0,curr=-1;
            for(int i=0;i<n;i++)
            {
                int x=ob.nextInt();
                if(i==0)
                {
                    curr=x;
                    ++count;
                }
                else
                {
                    if(curr==x)
                    ++count;
                    else
                    {
                        a.add(new Pair(curr,count));
                        curr=x;
                        count=1;
                    }
                }
            }
            a.add(new Pair(curr,count));
            count=n/2;
            int g=a.get(0).y;
            count-=g;
            int i=1,s=0,b=0;
            while(s<=g)
            {
                if(i==a.size()) {count=-1;break;}
                s+=a.get(i).y;
                ++i;
            }
            count-=s;
            while(b<=g)
            {
                if(i==a.size()) {count=-1;break;}
                b+=a.get(i).y;
                ++i;
            }
            count-=b;
            if(count<0) {System.out.println("0 0 0");continue;}
            while(i<a.size()&&count-a.get(i).y>=0)
            {
                b+=a.get(i).y;
                ++i;
                count-=a.get(i).y;
            }
            System.out.println(g+" "+s+" "+b);
        }
        System.out.println(sb);
    }
}
class Pair implements Comparable<Pair>
{
    int x,y;
    Pair(int x,int y)
    {
        this.x=x;
        this.y=y;
    }
    @Override
    public int compareTo(Pair a) {
        return a.y-y;
    }
}
class FastReader {
     BufferedReader br;
     StringTokenizer st;
     public FastReader() {
         br = new BufferedReader(new InputStreamReader(System.in));
     }
 
     public String next() {
         while (st == null || !st.hasMoreElements()) {
             try {
                 st = new StringTokenizer(br.readLine());
             } catch (IOException e)  {
                 e.printStackTrace();
             }
         }
         return st.nextToken();
     }
     public String nextLine()
     {
         String s="";
         try {
         s=br.readLine();
         } catch (IOException e)  {
                 e.printStackTrace();
             }
         return s;
     }
     public int nextInt() {
         return Integer.parseInt(next());
     }
     public long nextLong() {
         return Long.parseLong(next());
     }
     public double nextDouble() {
         return Double.parseDouble(next());
     }
 }
 