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

public class Solution {
    public static void main(String[] args) throws java.lang.Exception {
        out = new PrintWriter(new BufferedOutputStream(System.out));
        sc = new FastReader();
        int test = sc.nextInt();
        for (int t = 0; t < test; t++) {
            solve();
        }
        out.close();

    }

    private static void solve() {
        int n = sc.nextInt();
        TreeMap<Integer, Integer> solvedProblems = new TreeMap<>();
        for (int i = 0; i < n; i++) {
            int val = sc.nextInt();
            solvedProblems.put(-val, solvedProblems.getOrDefault(-val, 0) + 1);
        }
        List<Integer> scores = new ArrayList<>();
        for (Map.Entry<Integer, Integer> entry : solvedProblems.entrySet()) {
            scores.add(entry.getValue());
        }
        int goldMedals = scores.get(0);
        int silverMedals = 0;
        int bronzeMedals = 0;
        int index = 1;
        while (silverMedals <= goldMedals && index < scores.size()) {
            silverMedals += scores.get(index);
            index++;
        }
        if (goldMedals < silverMedals) {
            while (bronzeMedals <= goldMedals && index < scores.size()) {
                bronzeMedals += scores.get(index);
                index++;
            }
            while (index < scores.size() && goldMedals + silverMedals + bronzeMedals + scores.get(index) <= n / 2) {
                bronzeMedals += scores.get(index);
                index++;
            }
            if (goldMedals < bronzeMedals && goldMedals + silverMedals + bronzeMedals <= n / 2) {
                out.println(goldMedals + " " + silverMedals + " " + bronzeMedals);
                return;
            }
        }
        out.println(0 + " " + 0 + " " + 0);
    }

    public static FastReader sc;
    public static PrintWriter out;
    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;
        }
    }
}