import java.io.*;
import java.util.*;

public class Solution {

    public static void solve(int[] a){
        if(a.length < 6){
            System.out.println(0+" "+0+" "+0);
            return;
        }
        int length = a.length/2;
        while(length!=0 && a[length-1]==a[length]) length--;
        if(length < 3 ){
            System.out.println(0+" "+0+" "+0);
            return;
        }
        if(length == 3 ){
            if(a[0]!=a[1] && a[1]!=a[2]) System.out.println(1+" "+1+" "+1);
            else System.out.println(0+" "+0+" "+0);
            return;
        }
        int g=0,s=0,b=0;
        int i=0,j=length-1;
        while(a[i]==a[i+1] && i+1<length) i++;
        if(i+1==length){
            System.out.println(0+" "+0+" "+0);
            return;
        }
        g=i+1;
        b=1;
        int lastValidJ = -1;
        int lastValidB = -1;
        while(j-i-1>g && j>i){
            if(a[j] == a[j-1]){
                while(a[j] == a[j-1]) {
                    j--;
                    b++;
                }
            }else{
                j--;
                b++;
            }
            if(b > g && j-i-1 > g){
                lastValidJ = j;
                lastValidB = b;
            }
        }
        if(j==i){
            System.out.println(0+" "+0+" "+0);
            return;
        }
        s = lastValidJ-i-1;
        b = lastValidB;
        if(g<=b || g<=s){
            System.out.println(g+" "+s+" "+b);
            return;
        }else{
            System.out.println(0+" "+0+" "+0);
        }
    }

    public static void main(String[] args) throws IOException {

        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        sc.nextLine();
        while(T-- > 0) {
            int N = sc.nextInt();
            sc.nextLine();
            int[] a = new int[N];
            for (int i = 0; i < N; i++) {
                a[i] = sc.nextInt();
            }
            sc.nextLine();
            solve(a);
        }
        sc.close();
    }
}