//package cf604;

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

public class beautifulRegion {
    static BufferedReader in;

    public static void solve() throws IOException {
        int t = nextInt();
        while (t-- > 0){
            int n = nextInt();

            Integer[] arr = nextArray(n);

            int max_medals = n/2;
            int g = 1,s = 0,b= 0;
            int ptr = 1;
            if(n == 1){
                System.out.println("0 0 0");
                continue;
            }
            while(arr[ptr] == arr[0] && g+s+b < max_medals){
                g++;
                ptr++;
            }

            while(g+s+b < max_medals && s<=g ){
                s++;
                ptr++;
            }
            int max_silver = ptr-1;
            while(g+s+b < max_medals && arr[ptr] == arr[max_silver]){
                ptr++;
                s++;
            }

            while(g+s+b < max_medals && b<=g){
                ptr++;
                b++;
            }

            int last = ptr-1;

            int medals_left = max_medals - (g+s+b);
            b+=medals_left;
            ptr+=medals_left;
            //do a +1 here maybe
            while(ptr >= 1 && arr[ptr] == arr[ptr-1] ){
                b--;
                ptr--;
            }

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


        }


    }

    public static void main(String[] args) throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    static int nextInt() throws IOException {
        return Integer.parseInt(in.readLine().trim());
    }

    static long nextLong() throws IOException {
        return Long.parseLong(in.readLine().trim());
    }

    static Integer[] nextArray(int n) throws IOException {
        StringTokenizer st = new StringTokenizer(in.readLine());
        Integer[] tmp = new Integer[n];
        for (int i = 0; i < tmp.length; i++) {
            tmp[i] = Integer.parseInt(st.nextToken());
        }

        return tmp;
    }

}

