// package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
public class BA3 {
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int t=scan.nextInt();
        StringBuilder ans=new StringBuilder();
        while(t-->0){
            int n=scan.nextInt();
            int[] arr=new int[n];
            for (int i = 0; i <n ; i++) {
                arr[i]=scan.nextInt();
            }
            int max=n/2;
            if(n<6){
                ans.append("0 0 0\n");
            }
            else{
                Set<Integer> s=new HashSet<>();
                for(int i=0;i<max;i++){
                    s.add(arr[i]);
                }
                int u=s.size();
                if(arr[max]==arr[max-1]){
                    u--;
                }
                if(u<3){
                    ans.append("0 0 0\n");
                }
                else{
                    int go=0;
                    int si=0;
                    int br=0;
                    int cur=0;
                    int r=max-1;
                    while(arr[r+1]==arr[r]){
                        r--;
                    }
                    int prev=arr[0];
                    for(int i=0;i<=r;i++){
                        if(arr[i]==prev||cur>1){
                            if(cur==0){
                                go++;
                            }
                            if(cur==1){
                                si++;
                            }
                            if(cur>1){
                                br++;
                            }
                        }
                        else{
                            cur++;
                            prev=arr[i];
                            if(cur==1){
                                si++;
                            }
                            else{
                                br++;
                            }
                        }
                    }
                    ans.append(go+" "+si+" "+br+"\n");
                }
            }
        }
        System.out.println(ans);
    }
    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;
        }
    }

}
