import java.io.*;
import java.util.*;

public class Main {
    private static FastReader f = new FastReader();

    public static void main(String[] args) {
        int t = f.nextInt();

        while (t-- > 0) {
            solve();
        }
    }

    private static void solve() {
        int n = f.nextInt();
        int[] arr = new int[n];
        for(int i=0;i<n;i++) {
            arr[i] = f.nextInt();
        }

        if(n < 6) {
            System.out.println("0 0 0");
            return;
        }

        int start = n/2-1;
        if(arr[n/2] == arr[n/2-1]) {
            int l = n/2-2;
            while (l >= 0 && arr[l] == arr[n/2]) {
                l--;
            }

            if(l <= 2) {
                System.out.println("0 0 0");
                return;
            }

            start = l;
        }

        int cntGold = 0;
        while (cntGold <= start && arr[0] == arr[cntGold]) {
            cntGold++;
        }

        if((cntGold+1)/3 > (start+1)/3) {
            System.out.println("0 0 0");
            return;
        }

        int cntSilver = cntGold+cntGold+1;
        int locSilver = cntSilver+1;
        while ( (cntSilver <= start && arr[cntSilver] == arr[locSilver])) {
            locSilver++;
        }

        cntSilver = locSilver-1;

        int silver = (cntSilver+1-cntGold);
        int bronz = (start-cntSilver);

        if(silver <= cntGold || bronz <= cntGold) {
            System.out.println("0 0 0");
            return;
        }

        System.out.println(cntGold+" "+silver+" "+bronz);


    }

    //fast input reader
    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;
        }
    }
}



