import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Solve7 {

    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(System.out);
        new Solve7().solve(pw);
        pw.flush();
        pw.close();
    }

    public void solve(PrintWriter pw) throws IOException {
        FastReader sc = new FastReader();
        int t = sc.nextInt();
        while (t-- > 0) {
            int n = sc.nextInt();
            int[] a = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = sc.nextInt();
            }
            ArrayList<Integer> b = new ArrayList();
            b.add(1);
            for (int i = 1, j = 0; i < n; i++) {
                if (a[i] == a[i - 1]) {
                    b.set(j, b.get(j) + 1);
                } else {
                    b.add(1);
                    ++j;
                }
            }
            int g = 0, s = 0, br = 0;
            if (b.size() >= 3) {
                g = b.get(0);
                s = b.get(1);
                int i;
                for (i = 2; i < b.size() && s <= g; i++) {
                    s += b.get(i);
                }
                for (; i < b.size() && br <= g; i++) {
                    br += b.get(i);
                }
                if (s <= g || br <= g || g + s + br > n / 2) {
                    g = s = br = 0;
                } else {
                    while (g + s + br + b.get(i) <= n / 2) {
                        br += b.get(i++);
                    }
                }
            }
            pw.println(g + " " + s + " " + br);
        }
    }

    static class FastReader {

        StringTokenizer st;
        BufferedReader br;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastReader(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (Exception e) {
            }
        }

        public String next() {
            if (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (Exception e) {
                }
            }
            return st.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() throws IOException {
            return br.readLine();
        }

        public boolean hasNext() throws IOException {
            if (st != null && st.hasMoreTokens()) {
                return true;
            }
            String s = br.readLine();
            if (s == null || s.isEmpty()) {
                return false;
            }
            st = new StringTokenizer(s);
            return true;
        }
    }
}
