 
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.Arrays;

public class cf6043
{ 

	
	public static void main(String[] args) 
	{ 
		FastReader fr=new FastReader();
		int t=fr.nextInt();
		while(t-->0){
			int n=fr.nextInt();
			int[] arr=new int[n];
			for(int i=0;i<n;i++){
				arr[i]=fr.nextInt();
			}
		int[] a=calc(arr,n);
		soparr(a);
		

		}


	}
	public static int[] calc(int[] arr,int n){
		if(n<5)return (new int[]{0,0,0});
		int m=n/2;
		int[] num=new int[m];
		int i=0,ptr=0;
		while(arr[i]!=arr[m]){
			int j=i;
			while(arr[j]==arr[i]){j++;}
			num[ptr++]=j-i;
			i=j;
		}
		
		if(ptr<3)return (new int[]{0,0,0});
		int g=num[0],b=num[--ptr],s=i-g-b;
		while((g>=s||g>=b)&&ptr>0){
			b+=num[--ptr];
			s=i-g-b;
			if(b>s)return (new int[]{0,0,0});
		}
		if(g+s+b==i)return (new int[]{g,s,b});
		return (new int[]{0,0,0});


	}

	public static int bins(int[] arr,int l,int u,int t){
		while(l<=u){
			if(l==u)return l;

			int m=l+(u-l)/2;
			if(arr[m]<t)u=m-1;
			else l=m+1;

			

		}
		return l;
	}
	


	static void sop(String s){
		System.out.println(s);
	}
	static void soparr(int[] arr){
		if(arr==null)return;
		System.out.print(arr[0]);
		for(int i=1;i<arr.length;i++){
			System.out.print(" "+arr[i]);
		}
		System.out.println();
	}



	static class FastReader 
	{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 



		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	} 

} 


















