import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class A {

	public static void main(String[] args) {
		FastScanner fs=new FastScanner();
		int T=fs.nextInt();
		PrintWriter out=new PrintWriter(System.out);
		for (int tt=0; tt<T; tt++) {
			int n=fs.nextInt();
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=fs.nextInt();
			int nGolds=0;
			while (nGolds+1<n && a[nGolds+1]==a[nGolds]) {
				nGolds++;
			}
			int lastSilver=nGolds*2+1;
			while (lastSilver+1<n && a[lastSilver+1]==a[lastSilver]) lastSilver++;
			int lastBronze=lastSilver+nGolds+1;
			while (lastBronze+1<n && a[lastBronze+1]==a[lastBronze]) lastBronze++;
			if (lastBronze*2>=(n-1)) {
				out.println("0 0 0");
			}
			else {
				int avail=lastBronze;
				while (lastBronze*2<=n-1) {
					avail=lastBronze;
					lastBronze++;
					while (lastBronze+1<n && a[lastBronze+1]==a[lastBronze]) lastBronze++;
				}
				out.println((nGolds+1)+" "+(lastSilver-nGolds)+" "+(avail-lastSilver));
			}
		}
		out.close();
	}
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		
		String next() {
			while (!st.hasMoreElements())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
	}

}
