import java.util.*;
import java.io.*;
public class Main {
	public static void main(String args[]) throws java.lang.Exception	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int q = Integer.parseInt(br.readLine());
        while (q-- > 0){
            int n = Integer.parseInt(br.readLine());
            String S[] = br.readLine().split(" ");
            int arr[] = new int[n];
            for (int i = 0; i < n ; i ++)
                arr[i] = Integer.parseInt(S[i]);
            ArrayList<Integer> list = new ArrayList<>();
            ArrayList<Integer> count = new ArrayList<>();
            int i = 0;
            while (i < n){
                int j = i+1;
                int c = 0;
                while(j<n && arr[j] == arr[i]){
                    j++;
                    c++;
                }
                list.add(arr[i]);
                count.add(c+1);
                i = j;
            }
            int gold = count.get(0), silver = 0, bronze = 0;
            int limit = n/2;
            n = count.size();
            int ss = 1;
            int c = 0;
            while(ss<n && c <= gold){
                c+=count.get(ss);
                ss++;
            }
            if (ss >= n && c <= gold)System.out.println("0 0 0");
            else{
                silver = c;
                c = 0;
                int bb = ss;
                while (bb < n && c <= gold){
                    c += count.get(bb);
                    bb++;
                }
                if (bb >= n && c <= gold)System.out.println("0 0 0");
                else{
                    bronze = c;
                    if (gold + silver + bronze > limit)System.out.println("0 0 0");
                    else{
                        int index = bb;
                        while (index < n && gold + silver + bronze <= limit){
                            bronze += count.get(index);
                            index++;
                        }
                        bronze -= count.get(index - 1);
                        if (index != n)
                        System.out.println(gold+ " "+silver+" "+ bronze);
                    }
                }
            }
        }
	}
}