Problem: 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

Solution (in JAVA):

Solution:
import java.io.*; 
import java.util.*;
import java.math.*; 

public class Main {
	static class SegTree {
		SegTree lChild, rChild;
		int leftmost,rightmost;
		long min=Integer.MAX_VALUE;
		long max=Integer.MIN_VALUE;
		
		public SegTree(int l, int r,long[] arr) {
			this.leftmost=l;
			this.rightmost=r;
			if(l==r) {
				this.min=arr[l];
				this.max=arr[l];
			}
			else {
				int mid=(leftmost+rightmost)/2;
				lChild=new SegTree(l, mid,arr);
				rChild=new SegTree(mid+1, r,arr);
				recalc();
				
			}
//			System.out.println(l+" "+r+" "+min+" "+max);
		}
		
		void recalc() {
			min=Math.min(lChild.min,rChild.min);
			max=Math.max(lChild.max,rChild.max);
		}
		
		long min(int l, int r) {
			if (l<=leftmost && r>=rightmost) {
				return min;
			}
			if (r<leftmost || l>rightmost) {
				return Long.MAX_VALUE;
			}
			return Math.min(lChild.min(l,r),rChild.min(l,r));
		}
		long max(int l, int r) {
			if (l<=leftmost && r>=rightmost) {
				return max;
			}
			if (r<leftmost || l>rightmost) {
				return Long.MIN_VALUE;
			}
			return Math.max(lChild.max(l,r),rChild.max(l,r));
		}
	}
	static int bs(SegTree seg,int start, int end, long k,int n,int i) {
//		System.out.println(start+" yo "+end);
		if(end<start) {
			return -1;
		}
		int mid=(start+end)/2;
//		System.out.println(mid);
		long min=seg.min(i+1,mid);
		long max=seg.max(mid+1,n-1);
		if(max>k) {
			return bs(seg,mid+1,end,k,n,i);
		}
		else if(max<k) {
			return bs(seg,start,mid-1,k,n,i);
		}
		else {
			if(min==k) {
				return mid;
			}
			else if(min>k) {
				return bs(seg,mid+1,end,k,n,i);
			}
			else {
				return bs(seg,start,mid-1,k,n,i);
			}
		}
	}
	public static void main(String[] args) throws IOException 
	{ 
		FastScanner f = new FastScanner(); 
		int t=1;
		t=f.nextInt();
		PrintWriter out=new PrintWriter(System.out);
		for(int tt=0;tt<t;tt++) {
			int n=f.nextInt();
			long[] l=f.readLongArray(n);
			int a=-1;
			int b=-1;
			int c=-1;
			SegTree seg=new SegTree(0,n-1,l);
			for(int i=0;i<n;i++) {
				long k=seg.max(0,i);
				int mid=bs(seg,i+1,n-1,k,n,i);
//				System.out.println((i)+" "+mid+" "+k);
				if(mid!=-1) {
					a=i+1;
					b=mid+1-a;
					c=n-a-b;
					break;
				}
			}
			if(a==-1) {
				out.println("NO");
			}
			else {
			out.println("YES");
				out.println(a+" "+b+" "+c);
			}
		}
		out.close();
	} 
	static void sort(int [] a) {
        ArrayList<Integer> q = new ArrayList<>();
        for (int i: a) q.add(i);
        Collections.sort(q);
        for (int i = 0; i < a.length; i++) a[i] = q.get(i);
    }
    
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		long nextLong() {
			return Long.parseLong(next());
		}
		double nextDouble() {
			return Double.parseDouble(next());
		}
		long[] readLongArray(int n) {
			long[] a=new long[n];
			for (int i=0; i<n; i++) a[i]=nextLong();
			return a;
		}
	}
}