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

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

		int t = Integer.parseInt(br.readLine());

		while(t-- != 0){
			int n = Integer.parseInt(br.readLine());

			if(n < 10){
				br.readLine();
				System.out.println("0 0 0");
			}
			else{
				String st[] = br.readLine().split(" ");

				int arr[] = new int[st.length];

				int i;

				for(i = 0; i < st.length; i++){
					arr[i] = Integer.parseInt(st[i]);
				}

				int k = n/2 - 1;

				int b_s, b_e, s_s, s_e, g_s, g_e;

				if(arr[k] == arr[k+1]){
					while(k >= 1 && arr[k] == arr[k-1]){
						k--;
					}
					k--;
				} 
				if(k+1 < 5){
					System.out.println("0 0 0");
					continue;
				}
				b_s = k;
				int count = 1;
				while(k >= 1 && arr[k] == arr[k-1]){
					k--;
					count++;
				}

				if(count == 1){
					count++;
					k--;
				}
				b_e = k;

				if(k < 3){
					System.out.println("0 0 0");
					continue;
				}

				g_s = 0;
				g_e = 0;

				while(g_e < k && arr[g_e] == arr[g_e+1]){
					g_e++;
				}

				if(k - g_e < 2){
					System.out.println("0 0 0");
					continue;
				}

				k--;
				s_s = k;
				s_e = g_e+1;

				int count_g = g_e-g_s+1;
				int count_s = s_s-s_e+1;
				int count_b = b_s-b_e+1;

				System.out.println(count_g + " " + count_s + " " + count_b);

			}
		}
	}
}