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

/* Name of the class has to be "Main" only if the class is public. */
public class codechef
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x1 = sc.nextLine();
		int x = Integer.parseInt(x1);

		for(int i = 0; i < x; i++) {
			//String y1 = sc.nextLine();
			
			int y = sc.nextInt();;
			
			int[] arr = new int[y];
			for(int j = 0; j< y; j++) {
				arr[j] = sc.nextInt();
			}
			


			int g = 0;
			int s = 0;
			int b = 0;

			int var1 = -1;

			int ArrayCount = 0;
			int prev = arr[0];
			int curr = 0;
			g++;
			while(true) {
				if(g > y/2) {
					var1 = 0;
					break;
				}
				curr = arr[ArrayCount+1];
				if(prev == curr) {
					g++;
					prev = curr;
					ArrayCount++;
				}
				else {
					ArrayCount++;
					break;
				}
			}
			
			
			prev = curr;
			s++;
			while(true) {


				if(g+s> y/2) {
					var1 = 0;
					break;
				}
				curr = arr[ArrayCount+1];
				if(prev == curr) {
					s++;
					ArrayCount++;
					prev = curr;
				}
				else if(s<=g) {
					s++;
					ArrayCount++;
					prev = curr;
				}

				else {
					ArrayCount++;
					break;
				}

			}

			//ArrayCount = 0;
			prev = curr;
			b++;
			
			int var2 = 0;

			while(true) {
				
				if(g+s+var2 <=y/2 && g+s+b> y/2) {
//					System.out.println(" bgh");
//					System.out.println(var2);
					b = var2;
					break;
				}

				else if(g+s+b> y/2) {
					var1 = 0;
					
					break;
				}
				curr = arr[ArrayCount+1];
				if(prev == curr) {
					b++;
					ArrayCount++;
					prev = curr;
				}
				else if(b<=g) {
					b++;
					ArrayCount++;
					prev = curr;
				}

				else if(g+s+b<=y/2) {
					var2 = b;
					b++;
					ArrayCount++;
					prev = curr;
				}

//				if(b+s+g>y/2) {
//					b = var1;
//					ArrayCount++;
//					break;
//				}
			}

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


		}

		sc.close();
	}


}
