
import java.lang.reflect.Array;
import java.util.*;
import java.io.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
	    FastReader sc = new FastReader();
        int t = sc.nextInt();
        for(int tt=0;tt<t;tt++){
            int n = sc.nextInt();
            LinkedHashMap<Integer,Integer> m = new LinkedHashMap<Integer, Integer>();
            int a=0;
            for(int i=0;i<n;i++)
            {
                a = sc.nextInt();
                Integer count = m.getOrDefault(a,0);
                m.put(a,count+1);
            }
            if(n>5)
            {

                int g=0,s=0,b=0;
                for(Map.Entry i : m.entrySet()){
                    int d= (int)i.getValue();
                    if(g==0)
                        g+= d;
                    else if(s<=g)
                        s+= d;
                    else if((g+b+s+d)<=(n/2))
                        b+= d;
                    else
                        break;
                }

                if((g+b+s)<=(n/2) && (g<s) && (g<b))
                    System.out.println(""+g+" "+s+" "+b);
                else
                    System.out.println("0 0 0");
            }
            else
                System.out.println("0 0 0");


        }
    }
}


class FastReader
{
    BufferedReader br;
    StringTokenizer st;

    public 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());
    }

    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;
    }
}