import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class BeautifulContest {
	public static void main(String[] args) {
		InputReader r = new InputReader(System.in);
		int T = r.nextInt();
		while (T-- > 0) {
			int n = r.nextInt();
			int[] arr = new int[n];
			for (int i = 0; i < arr.length; i++) {
				arr[i] = r.nextInt();
			}
			ArrayList<Integer> buckets = new ArrayList<Integer>();
			for (int i = 0; i < arr.length;) {
				int size = 0, start = arr[i];
				while (i < arr.length && arr[i] == start) {
					i++;
					size++;
				}
				buckets.add(size);
			}
			int maximum = n / 2;
			int gold = buckets.get(0), silver = 0, bronze = 0;
			int taken = buckets.get(0);
			int ind = 1;
			while (ind < buckets.size() && gold >= silver) {
				taken += buckets.get(ind);
				silver += buckets.get(ind);
				ind++;
			}

			while (true) {
				if (ind < buckets.size() && taken + buckets.get(ind) <= maximum) {
					taken += buckets.get(ind);
					bronze += buckets.get(ind);
					ind++;
				} else {
					break;
				}
			}
			boolean solve = false;
			if (gold > 0 && silver > 0 && bronze > 0) {
				if (gold < silver && gold < bronze) {
					if (taken <= maximum) {
						System.out.println(gold + " " + silver + " " + bronze);
						solve = true;
					}
				}
			}
			if (!solve) {
				System.out.println("0 0 0");
			}
		}

	}

	static class InputReader {
		private BufferedReader reader;
		private StringTokenizer tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream));
			tokenizer = null;
		}

		public InputReader(FileReader stream) {
			reader = new BufferedReader(stream);
			tokenizer = null;
		}

		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				return null;
			}
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public double nextDouble() {
			return Double.parseDouble(next());
		}
	}
}
