import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Locale;
import java.util.StringTokenizer;

public class Solution implements Runnable {
	
	public static final String NO_SOLUTION = "0 0 0";
	
	private PrintStream out;
	private BufferedReader in;
	private StringTokenizer st;
	
	public void solve() throws IOException {
		long time0 = System.currentTimeMillis();
		
		int t = nextInt();
		for (int test = 0; test < t; test++) {
			int n = nextInt();
			int[] p = new int[n];
			for (int i = 0; i < n; i++) {
				p[i] = nextInt();
			}
			String answer = solve(n, p);
			out.println(answer);
		}
		
		System.err.println("time: " + (System.currentTimeMillis() - time0));
	}
	
	private String solve(int n, int[] p) {
		int[] sp = split(n, p);
		int i = 0;
		int g = sp[i++];
		int s = 0;
		while (i < sp.length && s <= g) {
			s += sp[i++];
		}
		if (s <= g) {
			return NO_SOLUTION;
		}
		int b = 0;
		while (i < sp.length && g + s + b + sp[i] <= n / 2) {
			b += sp[i++];
		}
		if (b <= g) {
			return NO_SOLUTION;
		}
		return g + " " + s + " " + b;
	}

	private int[] split(int n, int[] p) {
		ArrayList<Integer> result = new ArrayList<>();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			cnt++;
			if (i + 1 == n || p[i] != p[i + 1]) {
				result.add(cnt);
				cnt = 0;
			}
		}
		return toa(result);
	}

	private int[] toa(ArrayList<Integer> list) {
		int[] result = new int[list.size()];
		for (int i = 0; i < result.length; i++) {
			result[i] = list.get(i);
		}
		return result;
	}

	public double nextDouble() throws IOException {
		return Double.parseDouble(next());
	}
	
	public long nextLong() throws IOException {
		return Long.parseLong(next());
	}
	
	public int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	public String next() throws IOException {
		while (!st.hasMoreTokens()) {
			String line = in.readLine();
			if (line == null) {
				return null;
			}
			st = new StringTokenizer(line);
		}
		return st.nextToken();
	}
	
	@Override
	public void run() {
		try {
			solve();
			out.close();
		} catch (Throwable e) {
			throw new RuntimeException(e);
		}
	}
	
	public Solution(String name) throws IOException {
		Locale.setDefault(Locale.US);
		if (name == null) {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintStream(new BufferedOutputStream(System.out));
		} else {
			in = new BufferedReader(new InputStreamReader(new FileInputStream(name + ".in")));
			out = new PrintStream(new BufferedOutputStream(new FileOutputStream(name + ".out")));
		}
		st = new StringTokenizer("");
	}
	
	public static void main(String[] args) throws IOException {
		new Thread(new Solution(null)).start();
	}
}
