
import java.util.*;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);
        int n,T=sc.nextInt();

        for(int i=0;i<T;i++)
        {
            n=sc.nextInt();

            int[] bucket=new int[n];

            int j,k,g,s,b,temp,prev=-1;
            g=s=b=j=k=0;

            do {

                temp=sc.nextInt();
                if(j==0 || temp==prev)
                {
                    bucket[k]++;
                }
                else
                {
                    k++;
                    bucket[k]++;
                }
                j++;
                prev=temp;

            }while(j<n);

            if(n>2) {
                int half = n / 2;

                int m = 1;
                g = bucket[0];

                int bs = bucket[m];
                while (g >= bs && m<n-1) {
                    m++;
                    bs += bucket[m];
                }
                s = bs;

                m++;
                for (int p = m; p < n ; p++) {
                    if (g + bs + b + bucket[p] <= half) {
                        b += bucket[p];
                    }
                    else break;
                }
                if (g == 0 || b == 0 || s == 0 ||g>=s ||g>=b ) g = s = b = 0;
                System.out.println(g + " " + s + " " + b);
            }
            else
            {
                System.out.println( "0 " + "0 " + "0");
            }

        }
    }
}
