import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        FastReader fr = new FastReader();
        FastWriter fw = new FastWriter();
        int t = fr.nextInt();

        while (t-- > 0) {
            int n = fr.nextInt();
            int arr[] = new int[n + 1];
            for (int i = 1; i <= n; i++) {
                arr[i] = fr.nextInt();
            }
            int g = 1, s = 0, b = 0;
            for (int i = 2; i <= n / 2; i++) {
                if (arr[i] < arr[i - 1]) {
                    if (s <= g) {
                        s++;
                    } else if (s > g) {
                        b++;
                    }
                } else if (b > 0) {
                    b++;
                } else if (s > 0) {
                    s++;
                } else if (g > 0) {
                    g++;
                }
            }
            int i = n / 2;
            while (arr[i] == arr[i + 1] && i > 0 && b > 0) {
                b--;
                i--;
            }
            if (g > 0 && s > 0 && b > 0 && s > g && b > g) {

                fw.println(g + " " + s + " " + b);
            } else {
                fw.println("0 0 0");
            }
        }
    }

}


class FastReader {
    public FastReader() {
    }

    public FastReader(String fileName) throws FileNotFoundException {
        this.br = new BufferedReader(new FileReader(fileName));
    }

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st;

    String nextString() throws IOException {
        if (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(br.readLine());
        }
        return st.nextToken();
    }

    int nextInt() throws IOException {
        return Integer.parseInt(nextString());
    }

    long nextLong() throws IOException {
        return Long.parseLong(nextString());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(nextString());
    }
}

class FastWriter {
    public FastWriter() {
    }

    public FastWriter(String fileName) throws IOException {
        this.bw = new BufferedWriter(new FileWriter(fileName));
    }

    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

    void print(Object o) throws IOException {
        bw.write(o.toString());
        bw.flush();
    }

    void println(Object o) throws IOException {
        print(o.toString() + "\n");
    }

    void printSp(Object o) throws IOException {
        print(o.toString() + " ");
    }
}