

import java.io.*;

import java.util.*;
import java.math.*;


public class Main{
    public static void main(String[] args) throws IOException {
 
          Scanner sc=new Scanner(System.in);
  int q=sc.nextInt();
  while(q-->0){
      int num=sc.nextInt();
      int a[]=new int[1000001];
      long sum=0;
      ArrayList<Integer> al=new ArrayList();
      for(int i=0;i<num;i++){int x=sc.nextInt();if(!al.contains(x)){al.add(x);}a[x]++;}
      if(num<6){System.out.println("0 0 0");}
      else{
          if(al.size()>2){
      Collections.sort(al);
      sum=a[al.get(al.size()-1)]+a[al.get(al.size()-2)]+a[al.get(al.size()-3)];
      if(sum>(num/2)){System.out.println("0 0 0");}
      else{
          sum-=a[al.get(al.size()-3)];
      long sl=a[al.get(al.size()-3)];
         
      for(int i=al.size()-4;i>=0;i--){
          //System.out.println("number:"+al.get(i));
          if(sum+sl+a[al.get(i)]<=(num/2)){sl+=a[al.get(i)];}else{break;}}
          System.out.println(a[al.get(al.size()-1)]+" "+a[al.get(al.size()-2)]+" " +sl);
      }
          }
          else{System.out.println("0 0 0");}
      }
      
  }
    }
}