//package cf1;

import java.io.*;
import java.util.*;
 
public class utkarsh {
    
    BufferedReader br;
    PrintWriter out;
    
    long mod = (long) (1e9 + 7), inf = (long) (3e18);
    
    void solve() {
        int t = ni();
        while(t-- > 0) {
            int n = ni();
            int a[] = new int[n];
            for(int i = 0; i < n; i++)  a[i] = ni();
            int r = n / 2;
            while(r > 0 && a[r - 1] == a[r])  r--;
            if(r == 0) {
                out.println("0 0 0");   continue;
            }
            int l = 0;
            while(a[l] == a[l+1])   l++;
            int g = l+1, s = -1, b = -1;
            for(int i = l+1; i < r-1; i++) {
                if(a[i] > a[i+1]) {
                    s = i - l;
                    b = r - i - 1;
                    if(g < s && g < b) {
                        break;
                    } else  s = -1;
                }
            }
            if(s == -1) out.println("0 0 0");
            else    out.println(g +" "+ s +" "+ b);
        }
    }
    
    long mp(long b, long e) {
        long r = 1;
        while(e > 0) {
            if( (e&1) == 1 )    r = (r * b) % mod;
            b = (b * b) % mod;
            e >>= 1;
        }
        return r;
    }
    
    // -------- I/O Template -------------
    
    char nc() {
        return ns().charAt(0);
    }
    
    String nLine() {
        try {
            return br.readLine();
        } catch(IOException e) {
            return "-1";
        }
    }
    
    double nd() {
        return Double.parseDouble(ns());
    }
    
    long nl() {
        return Long.parseLong(ns());
    }
    
    int ni() {
        return Integer.parseInt(ns());
    }
    
    StringTokenizer ip;
    
    String ns() {
        if(ip == null || !ip.hasMoreTokens()) {
            try {
                ip = new StringTokenizer(br.readLine());
            } catch(IOException e) {
                throw new InputMismatchException();
            }
        }
        return ip.nextToken();
    }
    
    void run() {
        br = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        solve();
        out.flush();
    }
    
    public static void main(String[] args) {
        new utkarsh().run();
    }
}