/**
 * ******* Created  on 5/12/19 7:26 PM*******
 */

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

public class C1265 implements Runnable {

    private static final int MAX = 4*(int) (1E5 + 5);
    private static final int MOD = (int) (1E9 + 7);
    private static final int Inf = (int) (1E9 + 10);

    private void solve() throws IOException {
        int t =reader.nextInt();
        int[] p = new int[MAX];

        while(t-- >0){
            int n = reader.nextInt();
            long a1 = 0, a2=0, a3=0;
            for(int i=0;i<n;i++)
                p[i] = reader.nextInt();
            if(n <=5) {
                writer.println("0 0 0");
                continue;
            }
            boolean flag = true;
            for(int i =0 ;i< n;i++){
                int j =i;
                while(j < n && (p[i]== p[j] ))j++;
                int gold =(j-i);
                int k= j+1;
                while(k <n && (p[k] == p[k-1] || (k-j)<= gold ) )k++;
                int silver = (k-j);
                int l =k+1;
                while(l < n && (p[l] == p[l-1] || (l-k)<=gold ))l++;
                int bronze = (l-k);
                if( gold >0 && gold < silver && gold < bronze && (gold+ silver + bronze)*2 <= n ){
                    a1 =gold;
                    a2 = silver;
                    a3 = bronze;
                }else{
                    flag =false;
                }
                break;
            }
            if(!flag || a1 <=0 || a2<=0 || a3<=0){
                writer.println("0 0 0");
                continue;
            }
            int ni = (int) (a1+a2+a3);

            for(int i =ni; i <= n/2;i++){
                int j = i+1;
                while(j < n && p[j-1] == p[j]) j++;
                long temp = (j-i);
                if( (a1+a2+a3+temp)*2 <= n && a1 < a2 && a1< a3){
                    a3 += temp;
                }else{
                    break;
                }
                j--;
                i=j;
            }
            writer.println(a1 +" "+a2+" "+a3);
        }
    }

    public static void main(String[] args) throws IOException {
        try (Input reader = new StandardInput(); PrintWriter writer = new PrintWriter(System.out)) {
            new C1265().run();
        }
    }

    StandardInput reader;
    PrintWriter writer;

    @Override
    public void run() {
        try {
            reader = new StandardInput();
            writer = new PrintWriter(System.out);
            solve();
            reader.close();
            writer.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    interface Input extends Closeable {
        String next() throws IOException;

        default int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        default long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        default double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        default int[] readIntArray() throws IOException {
            return readIntArray(nextInt());
        }

        default int[] readIntArray(int size) throws IOException {
            int[] array = new int[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextInt();
            }
            return array;
        }

        default long[] readLongArray(int size) throws IOException {
            long[] array = new long[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextLong();
            }
            return array;
        }
    }

    private static class StandardInput implements Input {
        private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        private StringTokenizer stringTokenizer;

        @Override
        public void close() throws IOException {
            reader.close();
        }

        @Override
        public String next() throws IOException {
            if (stringTokenizer == null || !stringTokenizer.hasMoreTokens()) {
                stringTokenizer = new StringTokenizer(reader.readLine());
            }
            return stringTokenizer.nextToken();
        }
    }
}
