import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;

public class Main {

    private FastScanner scanner = new FastScanner();

    public static void main(String[] args) {
        new Main().solve();
    }


    private void solve() {

        int t = scanner.nextInt();

        for (int ti = 0; ti < t; ti++) {
            int n = scanner.nextInt();

            int a[] = new int[n];
            Map<Integer, Integer> m = new HashMap<>();

            for (int i = 0; i < n; i++) {
                a[i] = scanner.nextInt();
                m.put(a[i], m.getOrDefault(a[i], 0) + 1);
            }

            int g = 0, s = 0, b = 0;
            int i = 0;

            do {
                g++;
                i++;
            } while (i < n && (a[i] == a[i - 1]));

            if (i < n) {
                do {
                    s++;
                    i++;
                } while (i < n && (a[i] == a[i - 1] || g >= s));

                for (int j = n - 1; j > i; j--) {
                    if (a[j] != a[j - 1] && j - i > g && j  <= n / 2) {
                        b = j - i;
                        break;
                    }
                }
            }

            if (b != 0) {
                System.out.println(g + " " + s + " " + b);
            } else {
                System.out.println(0 + " " + 0 + " " + 0);
            }

        }


    }

    static char[] swap(String str, int i, int j) {
        char ch[] = str.toCharArray();
        char temp = ch[i];
        ch[i] = ch[j];
        ch[j] = temp;
        return ch;
    }


    class FastScanner {
        BufferedReader reader;
        StringTokenizer tokenizer;

        FastScanner() {
            reader = new BufferedReader(new InputStreamReader(System.in), 32768);
            tokenizer = null;
        }

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

        }

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

        int[] nextA(int n) {
            int a[] = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = scanner.nextInt();
            }
            return a;
        }

        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);
            }
        }
    }
}