import java.util.*;
import java.io.*;
import java.lang.reflect.Array;
    	    	
 public class notYet {
 
    public static String sortString(String inputString) 
    { 
        // convert input string to char array 
        char tempArray[] = inputString.toCharArray(); 
          
        // sort tempArray 
        Arrays.sort(tempArray); 
          
        // return new sorted string 
        return new String(tempArray); 
    } 
	
    	  
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(System.out);
		int t = Integer.parseInt(br.readLine());
		while(t-- > 0)
		{
			int n = Integer.parseInt(br.readLine());
			
			Integer arr[] = new Integer[n];
			
			StringTokenizer st1 = new StringTokenizer(br.readLine());
			
			for(int i = 0 ; i < n ; i++)
			{
				arr[i] = Integer.parseInt(st1.nextToken());
			}
			
			int c = 1;
			
			for(int i = 0 ; i < n-1 ; i++)
			{
				if(arr[i] != arr[i+1])
					c++;
			}
			
			int pre[] = new int[c];
			
			for(int i = 0 , j = 0 ; i < n-1 ; i++)
			{
				if(arr[i] == arr[i+1])
				{
					pre[j]++;
				}
				else
				{
					pre[j]++;
					j++;
				}
			}
			
			int k = -1;
			int sum = 0;
			for(int i = 0 ; i < pre.length ; i++)
			{
				if(sum+pre[i] <= n/2)
				{
					sum += pre[i];
					k = i;
				}
				else
					break;
			}
			
			int sumg = pre[0] , sums = 0 , sumb = 0;
			sum -= sumg;
			int i = 1;
			for( ; i <= k ; i++)
			{
				if(sum-(sums+pre[i]) >= sums+pre[i])
				{
					sums += pre[i];
					
					
				}
				else
					break;
			}
			
			for(int l = i ; l <= k ; l++)
				sumb += pre[l];
			
		//	out.println(sumg+ " " + sums + " " + sumb);
			if(sumg <= sums && sums <= sumb)
			{
				out.println(sumg+ " " + sums + " " + sumb);
			}
			else
				out.println(0 + " " + 0 + " " + 0);
		}
		
		out.flush();
		out.close();
	}
	
	static class pair implements Comparable{
		
		int x , y;
		
		public pair(int x , int y)
		{
			this.x = x;
			this.y = y;
		}

		@Override
		public int compareTo(Object o) {
			pair p = (pair)o;
			
			if(this.x > p.x)
				return 1;
			if(this.x < p.x)
				return -1;
			return 0;
			
		}
		
	}
    		
    		
    		
    	
  }