import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.StringTokenizer;

public class cmedals {
	public static void main(String[] args) {
		FS sc=new FS();
		int nq=sc.nextInt();
		next: while(nq-->0) {
			int n=sc.nextInt();
			int numGiven=0;
			int[] arr=new int[n];
			Arrays.setAll(arr,i->sc.nextInt());
			ArrayDeque<Integer> freq=new ArrayDeque<>();
			int prev=arr[0];
			int fq=0;
			for(int i=0;i<arr.length;i++) {
				if(arr[i]==prev)fq++;
				else {
					freq.add(fq);
					fq=0;
					prev=arr[i];
					i--;
				}
			}
			freq.add(fq);
			int g=freq.pollFirst();
			int s=0;
			while(s<=g) {
				if(freq.isEmpty()) {System.out.println("0 0 0");continue next;}
				s+=freq.pollFirst();
			}
			if(g+s>n/2) {System.out.println("0 0 0");continue next;}
			int b=0;
			int lgb=-1;
			while(b<=g) {
				if(freq.isEmpty()) {System.out.println("0 0 0");continue next;}
				b+=freq.pollFirst();
			}
			while((g+s+b)<=n/2) {
				lgb=b;
				if(freq.isEmpty())break;
				b+=freq.pollFirst();
			}
			if(lgb==-1)System.out.println("0 0 0");
			else System.out.println(g+" "+s+" "+lgb);
			
			
			
		}
	}
	static class FS {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer("");
		String next() {
			while(!st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch(Exception e) {}
			}
			return st.nextToken();
		}
		int nextInt() {
			return Integer.parseInt(next());
		}
		long nextLong() {
			return Long.parseLong(next());
		}
	}
}	
