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

public class BeautifulRegionalContest {

	public static void main(String[] args) {
        FastScanner in = new FastScanner();
        PrintWriter out = new PrintWriter(System.out);
        int t = in.nextInt();
        while(t-->0) { 
        	int n = in.nextInt();
        	int a[] = in.readArray(n);
        	ArrayList<Integer> freq = new ArrayList<>();
        	int cnt = 1;
        	for(int i=0;i<n;i++) {
        		int k = i+1;
        		while(k<n&&a[i]==a[k]) {
        			cnt++;k++;
        		}
        		freq.add(cnt);//out.print(cnt+" ");
        		i=k-1;
        		cnt=1;
        	}
        	int gcnt = freq.get(0);
        	int scnt = 0,i=1;
        	while(i<freq.size()&&scnt<=gcnt) {
        		scnt += freq.get(i);i++;
        	}
        	int bcnt = 0;
        	while(i<freq.size()&&bcnt<=gcnt) {
        		bcnt += freq.get(i);i++;
        	}
        	if(gcnt+scnt+bcnt>n/2) {
        		gcnt=scnt=bcnt=0;
        	}
        	else if(gcnt+scnt+bcnt<n/2) {
        		while(i<freq.size()&&gcnt+scnt+bcnt+freq.get(i)<=n/2)
        		{
        			bcnt += freq.get(i);i++;
        		}
        	}
        	out.println(gcnt+" "+scnt+" "+bcnt);
        }
        out.flush();
	}
	
	static class FastScanner {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer("");
		
		String next() {
			while(!st.hasMoreTokens())
				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());
		}
		
		int[] readArray(int n) {
			int a[] = new int[n];
			for(int i=0;i<n;i++) a[i] = nextInt();
			return a;
		}
		
		long[] readArray(int n,long x) {
			long a[] = new long[n];
			for(int i=0;i<n;i++) a[i] = nextLong();
			return a;
		}
		
	}
}








