import java.util.*;
import java.io.*;
public class C {

	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		int T = sc.nextInt();
		PrintWriter pw = new PrintWriter(System.out);
		for(int t = 0; t < T; t++) {
			int n = sc.nextInt();
			int[] arr = new int[n];
			HashMap<Integer, Integer> count = new HashMap<>();
			for(int i = 0; i < n; i++) {
				arr[i] = sc.nextInt();
				if(count.containsKey(arr[i])) {
					count.put(arr[i], count.get(arr[i])+1);
				}
				else {
					count.put(arr[i], 1);
				}
			}
			if(n < 10) {
				pw.write("0 0 0\n"); continue;
			}
			int g = count.get(arr[0]);
			int s = 0;
			while(g+s < n && s <= g) {
				s += count.get(arr[g+s]);
			}
			int b = 0;
			while(g+s+b < n) {
				int add = count.get(arr[g+s+b]); 
				b += add;
				if(g+s+b > n/2) {
					b -= add; break;
				}
			}
			if(s <= g || b <= g) {
				pw.write("0 0 0\n");
			}
			else {
				pw.write(g+" "+s+" "+b+"\n");
			}
		}
		pw.flush();
	}
	static class FastScanner {
        public BufferedReader reader;
        public StringTokenizer tokenizer;
        public FastScanner() {
            reader = new BufferedReader(new InputStreamReader(System.in), 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());
        }
        public long nextLong() {
        	return Long.parseLong(next());
        }
        public double nextDouble() {
        	return Double.parseDouble(next());
        }
        public String nextLine() {
        	try {
        		return reader.readLine();
        	} catch(IOException e) {
        		throw new RuntimeException(e);
        	}
        }
    }

}
