// 27-Feb-2021
import java.util.*;
import java.io.*;

public class Contest {
	static class FastReader {

		BufferedReader br;
		StringTokenizer st;

		private FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

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

		int[] nextIntArray(int n) {
			int[] a = new int[n];
			for (int i = 0; i < n; i++)
				a[i] = nextInt();
			return a;
		}

		int[] nextIntArrayOne(int n) {
			int[] a = new int[n + 1];
			for (int i = 1; i < n + 1; i++)
				a[i] = nextInt();
			return a;
		}

		long[] nextLongArray(int n) {
			long[] a = new long[n];
			for (int i = 0; i < n; i++)
				a[i] = nextLong();
			return a;
		}

		long[] nextLongArrayOne(int n) {
			long[] a = new long[n + 1];
			for (int i = 1; i < n + 1; i++)
				a[i] = nextLong();
			return a;
		}

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

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

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	public static void main(String[] args) {
		FastReader s = new FastReader();
		StringBuilder str = new StringBuilder();

		int t = s.nextInt();

		while (t-- > 0) {
			int n = s.nextInt();
			int arr[] = s.nextIntArray(n);
			
			int max = n / 2;
			
			int gold = 0, silver = 0, bronze = 0;
			for(int i = 1; i <= n / 3; i++) {
				
				int si = i + 1, bz = i + 1;
				
				if(i + si + bz > max) break;
				
				if(arr[i] == arr[i - 1]) continue;
				
				int rem = max - i - bz;
				int j = i  + rem - 1;
				
				while(j >= si &&  arr[j] == arr[j + 1]) j--;
				
				int ss = j - i + 1; 
				
				if(ss < si) continue;
				
				
				int left  = max - i - ss;
				
				int ind = j + left;
				
				while(ind >= j && arr[ind] == arr[ind + 1])ind --;
				
				int bb = ind - j ;
				
				if(gold + silver + bronze < i + ss + bb) {
					gold = i;
					silver = ss;
					bronze = bb;
				}
				
				
				 
				
				
			}
			str.append(gold + " " + silver +" " + bronze +"\n");
			
			
			
		}
		System.out.println(str);
	}

}
