
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;

public class BeautifulRegionalContest {
    public static void main(String[] args) {
        FastReader input=new FastReader();
        int t=input.nextInt();
        while(t-->0)
        {
            int n=input.nextInt();
            int p[]=new int[n];
            ArrayList<Integer> list=new ArrayList<>();
            int c=1;
            for(int i=0;i<n;i++)
            {
                p[i]=input.nextInt();
                if(i!=0)
                {
                    if(p[i]==p[i-1])
                    {
                        c++;
                    }
                    else
                    {
                        list.add(c);
                        c=1;
                    }
                }
            }
            list.add(c);
            int g=list.get(0);
            int rem=n/2-g;
            int j=0;
            for(int i=1;i<list.size();i++)
            {
                if(list.get(i)>rem)
                {
                    j=i;
                    break;
                }
                else
                {

                    rem-=list.get(i);
                }
            }
            if(j==0)
            {
                j=list.size()-1;
            }
            else
            {
                j--;
            }
            int s=0,b=0;
            int ind=0;
            for(int i=1;i<=j;i++)
            {
                s+=list.get(i);
                if(s>g)
                {
                    ind=i;
                    break;
                }
            }
            if(s<=g)
            {
                System.out.println(0+" "+0+" "+0);
            }
            else
            {
                for(int i=ind+1;i<=j;i++)
                {
                    b+=list.get(i);
                }
                if(b>g)
                {
                    System.out.println(g+" "+s+" "+b);
                }
                else
                {
                    System.out.println(0+" "+0+" "+0);
                }
            }
        }
    }
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}
