You are given an array a consisting of n integers.

Let min(l, r) be the minimum value among a_l, a_{l + 1}, …, a_r and max(l, r) be the maximum value among a_l, a_{l + 1}, …, a_r.

Your task is to choose three positive (greater than 0) integers x, y and z such that:

  * x + y + z = n; 
  * max(1, x) = min(x + 1, x + y) = max(x + y + 1, n). 



In other words, you have to split the array a into three consecutive non-empty parts that cover the whole array and the maximum in the first part equals the minimum in the second part and equals the maximum in the third part (or determine it is impossible to find such a partition).

Among all such triples (partitions), you can choose any.

You have to answer t independent test cases.

Input

The first line of the input contains one integer t (1 ≤ t ≤ 2 ⋅ 10^4) — the number of test cases. Then t test cases follow.

The first line of the test case contains one integer n (3 ≤ n ≤ 2 ⋅ 10^5) — the length of a.

The second line of the test case contains n integers a_1, a_2, …, a_n (1 ≤ a_i ≤ 10^9), where a_i is the i-th element of a.

It is guaranteed that the sum of n does not exceed 2 ⋅ 10^5 (∑ n ≤ 2 ⋅ 10^5).

Output

For each test case, print the answer: NO in the only line if there is no such partition of a that satisfies the conditions from the problem statement. Otherwise, print YES in the first line and three integers x, y and z (x + y + z = n) in the second line.

If there are several answers, you can print any.

Example

Input


6
11
1 2 3 3 3 4 4 3 4 2 1
8
2 9 1 7 3 9 4 1
9
2 1 4 2 4 3 3 1 2
7
4 2 1 1 4 1 4
5
1 1 1 1 1
7
4 3 4 3 3 3 4


Output


YES
6 1 4
NO
YES
2 5 2
YES
4 1 2
YES
1 1 3
YES
2 1 4
import java.util.*;
import java.io.*;
public class Main
{
    static 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; 
        } 
    }
    static class Pair
    {
        int f,s;
        char c,p;
        Pair(int f,int s,char c)
        {
            this.f=f;
            this.s=s;
            this.c=c;
        }
    }
    public static int bs(int b[],int k,int j)
    {
        if(j<0)
        return -1;
        int l=0,r=j+1;
        while(r-l>1)
        {
            int mid=(l+r)/2;
            if(b[mid]>k)
            r=mid;
            else
            l=mid;
        }
        return b[l]<=k?l:-1;
    }
    public static void swapByRandom(int []arr,int n)
    {
        Random rand=new Random();
        for(int i=0;i<n;i++)
        {
            int ind=rand.nextInt(n);
            int temp=arr[i];
            arr[i]=arr[ind];
            arr[ind]=temp;
        }
    }
    static class comp implements Comparator<Pair>
    {
        public int compare(Pair p1,Pair p2)
        {
            if(p1.s==p2.s)
            return p2.f-p1.f;
            return p1.s-p2.s;
        }
    }
    static int seg[];
    public static void buildSegmentTree(int arr[],int l,int r,int ind)
    {
        if(l==r)
        {
            seg[ind]=arr[l];
            return;
        }
        int mid=(l+r)/2;
        buildSegmentTree(arr,l,mid,2*ind+1);
        buildSegmentTree(arr,mid+1,r,2*ind+2);
        seg[ind]=Math.min(seg[2*ind+1],seg[2*ind+2]);
    }
    public static int query(int l,int r,int s,int e,int ind)
    {
        if(r<l||e<l||s>r)
        return Integer.MAX_VALUE;
        if(l==r)
        return seg[ind];
        int mid=(l+r)/2;
        return Math.min(query(l,mid,s,e,2*ind+1),query(mid+1,r,s,e,2*ind+2));
    }
    public static void main(String args[])
    {
        FastReader fs=new FastReader();
        PrintWriter pw=new PrintWriter(System.out);
        int t=fs.nextInt();
        //int t=1;
        while(t-->0)
        {
            int n=fs.nextInt();
            seg=new int[4*n];
            int a[]=new int[n];
            for(int i=0;i<n;i++)
            a[i]=fs.nextInt();
            //buildSegmentTree(a,0,n-1,0);
            int sz=(int)(Math.log(n)/Math.log(2));
            int sparse[][]=new int[n][sz+1];
            for(int i=0;i<n;i++)
            sparse[i][0]=a[i];
            for(int i=1;i<sz+1;i++)
            {
                for(int j=0;j<=n-(1<<i);j++)
                sparse[j][i]=Math.min(sparse[j][i-1],sparse[j+(1<<(i-1))][i-1]);
            }
            int prefMax[]=new int[n];
            int suffMax[]=new int[n];
            prefMax[0]=a[0];
            suffMax[n-1]=a[n-1];
            for(int i=1;i<n;i++)
            prefMax[i]=Math.max(prefMax[i-1],a[i]);
            for(int i=n-2;i>=0;i--)
            suffMax[i]=Math.max(suffMax[i+1],a[i]);
            int r1=-1,r2=-1,r3=-1;
            for(int i=0;i<n-2;i++)
            {
                int l=i+2,r=n-1;
                boolean got=false;
                while(l<=r)
                {
                    int mid=(l+r)/2;
                    if(suffMax[mid]>prefMax[i])
                    l=mid+1;
                    else if(suffMax[mid]<prefMax[i])
                    r=mid-1;
                    else
                    {
                        int ss=(int)(Math.log(mid-1-i)/Math.log(2));
                        int q=Math.min(sparse[i+1][ss],sparse[mid-1-(1<<ss)+1][ss]);
                        //if(i==5&&t==5)
                        //pw.println(q+" "+i+" "+prefMax[i]);
                        if(q==prefMax[i])
                        {
                            r1=i+1;
                            r2=mid-r1;
                            r3=n-(r1+r2);
                            got=true;
                            break;
                        }
                        else if(q>prefMax[i])
                        l=mid+1;
                        else
                        r=mid-1;
                    }
                }
                if(got)
                break;
            }
            if(r1==-1)
            pw.println("NO");
            else
            {
                pw.println("YES");
                pw.println(r1+" "+r2+" "+r3);
            }
        }
        pw.flush();
        pw.close();
    }
}