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

public class BeautifulRegionalContest {
	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		int t = Integer.parseInt(input.readLine());
		
		while (t-- > 0) {
			int n = Integer.parseInt(input.readLine());
			int[] p = new int[1000002];
			
			StringTokenizer st = new StringTokenizer(input.readLine());
			for (int i = 0; i < n; i++) {
				p[Integer.parseInt(st.nextToken())]++;
			}
			
			for (int i = 1000001; i > 0; i--) {
				p[i - 1] += p[i];
			}
			
			int gold = 0, silver = 0, bronze = 0;
			for (int i = 1000001; i > 0; i--) {
				if (gold == 0) {
					if (p[i] != 0) gold = p[i];
				} else if (silver == 0) {
					if (p[i] > 2 * gold) silver = p[i] - gold;
				} else {
					if (p[i] <= n / 2) bronze = p[i] - gold - silver;
					else if (bronze == 0) {
						gold = 0;
						silver = 0;
						bronze = 0;
					}
				}
			}
			
			System.out.println(gold + " " + silver + " " + bronze);
		}
	}
}
