import java.util.*;
import java.io.*;
public class Main
{
	public static void main(String[] args) throws Exception {
		FastReader sc= new FastReader();
		PrintWriter out = new PrintWriter(System.out);
	    //Scanner sc=new Scanner(System.in);
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int t= sc.nextInt();
		while(t-->0) {
		int n= sc.nextInt();
		ArrayList<Integer> l =new ArrayList<Integer>();
		int prev=sc.nextInt();
		l.add(1);
		for(int i=1; i<n;i++) {
			int c= sc.nextInt();
			if(c==prev)
				l.set(l.size()-1, l.get(l.size()-1)+1);
			else {
				l.add(1);
				prev=c;
			}
		}
		boolean valid=true; 
		long g,s,b; g=s=b=0;
		if(l.size()<3)
			valid=false;
		else if (l.get(0)+l.get(1)+l.get(2)> n/2)
			valid=false;
		else {
			g=l.get(0);
			int i=1;
			while(s<=g)
				s+=l.get(i++);
			while(i<l.size() && b+g+s+l.get(i)<=n/2)
				b+=l.get(i++);
		}
		if (valid && b>g)
			out.println(g+" "+s+" "+b);
		else
			out.println("0 0 0");
		}
		out.flush();
	}
    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; 
		}
}
}