Problem: Misha walked through the snowy forest and he was so fascinated by the trees to decide to draw his own tree!

Misha would like to construct a rooted tree with n vertices, indexed from 1 to n, where the root has index 1. Every other vertex has a parent p_i, and i is called a child of vertex p_i. Vertex u belongs to the subtree of vertex v iff v is reachable from u while iterating over the parents (u, p_{u}, p_{p_{u}}, ...). Clearly, v belongs to its own subtree, and the number of vertices in the subtree is called the size of the subtree. Misha is only interested in trees where every vertex belongs to the subtree of vertex 1.

Below there is a tree with 6 vertices. The subtree of vertex 2 contains vertices 2, 3, 4, 5. Hence the size of its subtree is 4. 

<image>

The branching coefficient of the tree is defined as the maximum number of children in any vertex. For example, for the tree above the branching coefficient equals 2. Your task is to construct a tree with n vertices such that the sum of the subtree sizes for all vertices equals s, and the branching coefficient is minimum possible.

Input

The only input line contains two integers n and s — the number of vertices in the tree and the desired sum of the subtree sizes (2 ≤ n ≤ 10^5; 1 ≤ s ≤ 10^{10}).

Output

If the required tree does not exist, output «No». Otherwise output «Yes» on the first line, and in the next one output integers p_2, p_3, ..., p_n, where p_i denotes the parent of vertex i.

Examples

Input


3 5


Output


Yes
1 1 


Input


4 42


Output


No


Input


6 15


Output


Yes
1 2 3 1 5 

Note

Below one can find one of the possible solutions for the first sample case. The sum of subtree sizes equals 3 + 1 + 1 = 5, and the branching coefficient equals 2.

<image>

Below one can find one of the possible solutions for the third sample case. The sum of subtree sizes equals 6 + 3 + 2 + 1 + 2 + 1 = 15, and the branching coefficient equals 2.

<image>

Solution (in JAVA):

Solution:
import java.util.*;

public class Main {
	public static void main(String[] args)
	{
		//test();
		/*
		int re=26;
		int k=5;
		int i=3;
		for (int a=1;a<27;a++)
		{
			System.out.print(a+" ");
			System.out.print(a* i+p_1098C_fun2(a,re-a,k,i+1)+" ");
			System.out.println(a* i+(re-a+1+i+i)*(re-a)/2);
		}
		*/
		p_1098C();
		//System.out.println(p_1098C_fun1(100000,99999));
	}
	private static void p_1098C()
	{
		Scanner sc = new Scanner(System.in);
		long n = sc.nextInt();
		long s = sc.nextLong();
		long curr = 0;
		int re = (int)n;
		long ini=1;
		if(n+n-1>s || n*(n+1)/2 <s)
			System.out.println("No");
		else
		{
			System.out.println("Yes");
			int k;
			for (k=1;k<n;k++)
			{
				long ss = p_1098C_fun1(n,k);
				if (ss<=s)
					break;
			}
			//List<Long> l = new LinkedList<Long>();
			long []arr =new long[1];
			for(int i=1;re>0;i++)
			{

				if (i==1)
				{
					curr=1;
					re=(int)n-1;
					//l.add(ini++);
					arr[i-1]=ini++;
				}
				else
				{

					int left=1;
					int right = Math.min((int)Math.pow(k*1.0,i-1),re);
					int j =p_1098C_fun3(i,curr,s,re,k,i,left,right);
					for(int i1=1;i1<=j;i1++)
					{
						//System.out.print(l.get((i1-1)/k)+" ");
						System.out.print(arr[(i1-1)/k]+" ");
					}
					//l = new LinkedList<Long>();
					arr =new long[j];
					for(int i1=1;i1<=j;i1++)
					{
						//l.add(ini++);
						arr[i1-1]=ini++;
						re--;
					}
					curr+=j*i;
					/*
					if(curr+ j*i + mins <=s && curr+ j*i +maxs>=s)
					{
						for(int i1=1;i1<=j;i1++)
						{
							System.out.print(l.get((i1-1)/k)+" ");
						}
						l = new LinkedList<Integer>();
						for(int i1=1;i1<=j;i1++)
						{
							l.add(ini++);
							re--;
						}
						curr+=j*i;
					}
					*/

					/*
					for(int j=(int)Math.pow(k*1.0,i-1);j>0 && re>0;j--)
					{
						if (j>re)
							continue;
						int mins=p_1098C_fun2(j,re-j,k,i+1);
						int maxs=(re-j+1+i+i)*(re-j)/2 ;
						if(curr+ j*i + mins <=s && curr+ j*i +maxs>=s)
						{
							for(int i1=1;i1<=j;i1++)
							{
								System.out.print(l.get((i1-1)/k)+" ");
							}
							l = new LinkedList<Integer>();
							for(int i1=1;i1<=j;i1++)
							{
								l.add(ini++);
								re--;
							}
							curr+=j*i;
							break;
						}
					}
					*/
				}

			}
		}
	}
	private static long p_1098C_fun1(long n,int k)
	{
		if(n==0)
			return 0;
		long n1=1;
		long m;
		long s=1;
		if (k==1)
			return n*(n+1)/2;
		else
		{
			for (m=1;;m++)
			{
				if(((long)(Math.pow(k*1.0,m))-1)/(k-1) >=n)
					break;
			}
			for(int i=1;i<=m;i++)
			{
				if(i==1)
				{
					s=1;
				}

				else
				{
					n1 = ((long)(Math.pow(k*1.0,i))-1)/(k-1);
					s=s*k+ n1;
				}
			}
			return s- (n1-n) * m;
		}

	}
	private static long p_1098C_fun2(int j,int re,int k,int m)
	{
		long a=0;
		while(re>0)
		{
			if( re/j<=k)
			{
				a+= re*m;
				re =re-re;
			}
			else
			{
				a+= j*k*m;
				m++;
				re = re-j*k;
			}
		}
		return a;
	}
	private static int p_1098C_fun3(int i,long curr,long s,int re,int k,int m,int left,int right)
	{
		int res=0;
		while(left<=right)
		{
			int mid = (left+right) /2;
			long maxs=((long)(re-mid+1+i+i))*(re-mid)/2 ;
			long maxR = ((long)(re-right+1+i+i))*(re-right)/2 ;
			if(curr+ right*i +maxR>=s)
			{
				return right;
			}
			else if( curr+ mid*i +maxs>=s)
			{
				left=mid+1;
			}
			else
			{
				right=mid-1;
			}
		}
		return left-1;
	}
}