import java.util.ArrayList;
import java.util.Scanner;

public class ex1 {

	public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
	int count = scanner.nextInt();
	scanner.nextLine();
	ArrayList<String> res = new ArrayList<String>();
	for(int step=0; step < count; step++)
	{
		int n = scanner.nextInt();
		scanner.nextLine();
		if(n < 6)
		{
			scanner.nextLine();
			res.add("0 0 0");
			continue;
		}
		ArrayList<Integer> p = new ArrayList<Integer>();
		String stringValue[] = scanner.nextLine().split(" ");
		for(int i=0; i<n/2; i++)
			p.add(Integer.valueOf(stringValue[i]));
		int halfBorder = Integer.valueOf(stringValue[n/2+1]);
		while(p.get(p.size()-1) == halfBorder)
			p.remove(p.size()-1);
		int amountMedal = p.size();
		int[] medal = new int[3];
		int compare = p.get(0);
		while(p.get(0) == compare)
		{
			medal[0]++;
			p.remove(0);
		}
		
		compare = p.get(0);
		while(p.get(0) == compare || medal[0]>= medal[1])
		{
			medal[1]++;
			p.remove(0);
		}

		medal[2] = amountMedal -medal[0] - medal[1];
		if(medal[0] < medal[1] && medal[0] < medal[2] && medal[2]!=0)
			res.add(medal[0] + " " + medal[1] + " " + medal[2]);
		else
			res.add("0 0 0");
	}
	for(String result:res)
		System.out.println(result);
	scanner.close();
	}

}
