import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		while(t-->0)
		{
		    int n=sc.nextInt();
		    Integer[] arr=new Integer[n];
		    for(int i=0;i<n;i++)
		    arr[i]=sc.nextInt();
		    Arrays.parallelSort(arr,Collections.reverseOrder());
		    int k=n/2-1;
		    if(n>1){
		        while(k>0&&(arr[k]==arr[k+1]))
		        k--;
		    }
		    int[] brr=new int[3];int j=0,l;
		    Arrays.fill(brr,0);
		    for(int i=0;i<=k;i++)
		    {
		        if(j<2)
		       {
		        for(l=i;(l<=k)&&(arr[l]==arr[i]);l++)
		        brr[j]++;
		        i=l-1;
		        if(j==0)
		        j++;
		        else if(j==1)
		        {
		            if(brr[0]>=brr[1])
		            j=1;
		            else
		            j=2;
		        }
		       }
		       else
		       brr[2]++; 
		    }
		    if(brr[0]==0||brr[1]==0||brr[2]==0||brr[2]<=brr[0]||brr[1]<=brr[0]||((brr[0]+brr[1]+brr[2])>n/2))
		    brr[0]=brr[1]=brr[2]=0;
		    System.out.println(brr[0]+" "+brr[1]+" "+brr[2]);
		}
	}
}
