import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.*;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskB solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int t = in.nextInt();
            for (int d = 0; d <t ; d++) {
                int n = in.nextInt();
                int g=0 , s=0 , b=0;
                HashMap<Integer , Integer> map = new HashMap<>();
                ArrayList<Integer> arr = new ArrayList<>();
                arr.add(in.nextInt());
                map.put(arr.get(0) , 1);
                int j =1;
                for (int i = 1; i <n ; i++) {
                    int v = in.nextInt();
                    if (!map.containsKey(v))map.put(v,1);
                    else map.put(v , map.get(v)+1);
                    if (arr.get(j-1) != v) {arr.add(v);j++;}
                }
                g = map.get(arr.get(0));
                int i;
                for (i = 1; i <arr.size() ; i++) {
                    if (s+map.get(arr.get(i)) <= g) s+=map.get(arr.get(i));
                    else {s+=map.get(arr.get(i));break;}
                }
                for (int k = i+1; k <arr.size() ; k++) {
                    if (g+s+b+map.get(arr.get(k)) <= n/2) b+=map.get(arr.get(k));
                    else break;
                }
                if (g>n/2 ||b<=g || s<=g) System.out.println(0 + " " + 0 + " " + 0);
                else System.out.println(g+" " + s+" " +b);













            }


        }


    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

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

    }
}
