

import java.io.*;
import java.math.BigInteger;
import java.util.*;
import java.util.Stack;

import javax.swing.event.ListSelectionEvent;

public class ROUGH{
	public static class FastReader {
		BufferedReader br;
		StringTokenizer root;
		
 
		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}
 
		String next() {
			while (root == null || !root.hasMoreTokens()) {
				try {
					root = new StringTokenizer(br.readLine());
				} catch (Exception r) {
					r.printStackTrace();
				}
			}
			return root.nextToken();
		}
 
		int nextInt() {
			return Integer.parseInt(next());
		}
 
		double nextDouble() {
			return Double.parseDouble(next());
		}
 
		long nextLong() {
			return Long.parseLong(next());
		}
 
		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (Exception r) {
				r.printStackTrace();
			}
			return str;
		}
	}
	
	public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));
	static long mod = (long) (1e8);
	static long cf = 998244353;
    static final long MAX = (long) 1e15;
    
    public static List<Integer>[] edges;
    public static int[][] parent;
    public static int col = 32;
    public static int[] Bit;

	public static void main(String[] args) {
		FastReader sc = new FastReader();
       
       int t = sc.nextInt();
       while(t-->0) {
    	  int n = sc.nextInt();
    	  int[] a = new int[n];
    	  List<Pair> list = new ArrayList<>();
    	  for(int i=0;i<n;++i) a[i] = sc.nextInt();
    	  
    	  long sum = 0;
    	  for(int i=0;i<n;++i) {
    		  int j = i;
    		  while(j < n && a[i] == a[j]) ++j;
    		  if(sum + j-i > n/2) break;
    		  else sum+=j-i;
    		  list.add(new Pair(a[i],j-i));
    		  i = j-1;
    	  }
    	  
    	  if(list.size()>0) {
    	  int i = 1;
    	  long g = list.get(0).b,s = 0,b = 0;
    	  while(i < list.size() && s <= g) {
    		  s+=list.get(i++).b;
    	  }
    	  
    	  while(i < list.size()) {
    		  b+=list.get(i++).b;
    	  }
    	  
    	  if(s > g && b > g) out.println(g+" "+s+" "+b);
    	  else out.println("0 0 0");
    	  }else out.println("0 0 0");
    	  
    	  
       }
	   out.close();
	}

	static class Pair{
		int a;
		int b;
		Pair(int a,int b){
			this.a = a;
			this.b = b;
		}
	}
	
}