
import java.util.ArrayList;
import java.util.Scanner;

public class C {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int ci = sc.nextInt();
        while (ci-- != 0) {
            int n = sc.nextInt();
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = sc.nextInt();
            }
            if (n < 6) {
                System.out.println("0 0 0");
                continue;
            }
            ArrayList<Integer> bucket = new ArrayList<>();
            int cur = 1;
            for (int i = n - 2; i >= 0; i--) {
                if (arr[i] == arr[i + 1]) {
                    cur++;
                } else {
                    bucket.add(cur);
                    cur = 1;
                }
            }
            bucket.add(cur);
            int g = bucket.get(bucket.size() - 1);
            int jilei = 0;
            int p = 0;
            for (p = 0; p < bucket.size(); p++) {
                jilei += bucket.get(p);
                if (jilei >= (n + 1) / 2) {
                    p++;
                    break;
                }
            }
            int no = jilei;
            jilei = 0;
            int s = 0, b = 0;
            for (; p < bucket.size() - 1; p++) {
                jilei += bucket.get(p);
                if (jilei > g) {
                    s = jilei;
                    p++;
                    break;
                }
            }
            if (s == 0) {
                System.out.println("0 0 0");
            } else if (n - no - g - s > g) {
                System.out.println(g + " " + s + " " + (n - no - g - s));
            } else {
                System.out.println("0 0 0");
            }
        }
    }
}
