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

public class C {
    public static void main(String[] args) {
        FastScanner scanner = new FastScanner();
        PrintWriter out = new PrintWriter(System.out, false);
        int t = scanner.nextInt();
        while(t-->0) {
            int n = scanner.nextInt();
            int[] p = new int[n];
            for(int i = 0; i < n; i++) {
                p[i] = scanner.nextInt();
            }
            int max = p[0];
            int pt = 0;
            while(pt < n && p[pt] == max) pt++;
            int g = pt;
            int s = 0;
            while(pt < n && s <= g) {
                int cur = p[pt];
                while(pt < n && p[pt] == cur) {
                    s++;
                    pt++;
                }
            }
            int b = 0;
            while(pt < n && b <= g) {
                int cur = p[pt];
                while(pt < n && p[pt] == cur) {
                    b++;
                    pt++;
                }
            }
            while(pt < n/2) {
                int cur = p[pt];
                int curadd = 0;
                while(pt < n && p[pt] == cur) {
                    curadd++;
                    pt++;
                }
                if (pt <= n/2) b += curadd;
            }
            int tot = s + g + b;
            if (s<=g || b <= g || tot > n/2 || s == 0 || g==0 || b == 0) {
                out.println("0 0 0");
            }
            else out.println(g + " " + s + " " + b);
        }
        out.flush();
    }
    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
        
        public FastScanner(Reader in) {
            br = new BufferedReader(in);
        }
        
        public FastScanner() {
            this(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 readNextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}
