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:
//There is nothing in a catterpillar that tells you its going to be a butterfly
import java.lang.*;
import java.math.*;
import java.util.*;
import java.io.*;
public class Main {
    void solve() {
        int n=ni();
        long s=nl();
        if(s<2*n-1 || s>(n*1L*(n+1))/2){
            pw.println("NO");
            return;
        }
        s-=n;
        long k=-1;
        long l=1,r=n-1;
        while(l<=r){
            long kk=(l+r)>>1;
            long sm=0;
            long d=kk,left=n-1,level=1;
            while(left>0){
                long mn=Math.min(d,left);
                sm+=(level*mn);
                d*=kk;
                left-=mn;
                level++;
            }
           // pw.println(kk+" "+sm);
            if(sm<=s){
                k=kk;
                r=kk-1;
            }else {
                l=kk+1;
            }
        }


        long cnt[]=new long[n];
        cnt[0]=1;
        int total=n-1;
        long sm=0;
        out:for(int i=1;i<n && total>0;i++){
            long mx=Math.min(total,cnt[i-1]*k);
            l=1; r=mx;
            long x=-1;
            while(l<=r){
                long xx=(l+r)>>1;
                sm=xx*i+get(i+total-xx)-get(i);
                //if(i==2)pw.println(xx+" "+sm+" "+s+" "+total);
                if(s>sm){
                    r=xx-1;
                }else if(s<sm){
                    x=xx;
                    l=xx+1;
                }else {
                    x=xx;
                    break;
                }

            }
          //  pw.println(x);
            s-=(x*i);
            total-=x;
            cnt[i]=x;
        }
//        for(int i=0;i<n;i++) pw.print(cnt[i]+" ");
//        pw.println("");
//        pw.println(total+" "+s+" "+k);


        int parent[]=new int[n+1];
        ArrayList<Integer> vec[]=new ArrayList[n];
        for(int i=0;i<n;i++) vec[i]=new ArrayList<>();
        vec[0].add(1);
        int x=2;
        for(int i=1;i<n;i++){
            long cc=cnt[i],sz=0;
            for(int j=0;j<vec[i-1].size() && cc>0;){
                parent[x]=vec[i-1].get(j);
                vec[i].add(x);
                sz++;
                x++;
                if(sz%k==0){
                    sz=0;
                    j++;
                }
                cc--;
            }
        }
        pw.println("Yes");
        for(int i=2;i<=n;i++) pw.print(parent[i]+" ");
    }
    long get(long n){
        n*=(n+1);
        n/=2;
        return n;
    }

    long M= (long)1e9+7;
    InputStream is;
    PrintWriter pw;
    String INPUT = "";
    void run() throws Exception {
        is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
        pw = new PrintWriter(System.out);
        long s = System.currentTimeMillis();
        solve();
        pw.flush();
        if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+"ms");

    }
    public static void main(String[] args) throws Exception { new Main().run(); }

    private byte[] inbuf = new byte[1024];
    public int lenbuf = 0, ptrbuf = 0;

    private int readByte() {
        if(lenbuf == -1)throw new InputMismatchException();
        if(ptrbuf >= lenbuf){
            ptrbuf = 0;
            try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }
            if(lenbuf <= 0)return -1;
        }
        return inbuf[ptrbuf++];
    }

    private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }
    private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }

    private double nd() { return Double.parseDouble(ns()); }
    private char nc() { return (char)skip(); }

    private String ns() {
        int b = skip();
        StringBuilder sb = new StringBuilder();
        while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }

    private char[] ns(int n) {
        char[] buf = new char[n];
        int b = skip(), p = 0;
        while(p < n && !(isSpaceChar(b))){
            buf[p++] = (char)b;
            b = readByte();
        }
        return n == p ? buf : Arrays.copyOf(buf, p);
    }

    private char[][] nm(int n, int m) {
        char[][] map = new char[n][];
        for(int i = 0;i < n;i++)map[i] = ns(m);
        return map;
    }

    private int[] na(int n) {
        int[] a = new int[n];
        for(int i = 0;i < n;i++)a[i] = ni();
        return a;
    }

    private int ni() {
        int num = 0, b;
        boolean minus = false;
        while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
        if(b == '-'){
            minus = true;
            b = readByte();
        }

        while(true){
            if(b >= '0' && b <= '9'){
                num = num * 10 + (b - '0');
            }else{
                return minus ? -num : num;
            }
            b = readByte();
        }
    }

    private long nl() {
        long num = 0;
        int b;
        boolean minus = false;
        while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
        if(b == '-'){
            minus = true;
            b = readByte();
        }

        while(true){
            if(b >= '0' && b <= '9'){
                num = num * 10 + (b - '0');
            }else{
                return minus ? -num : num;
            }
            b = readByte();
        }
    }
    private boolean oj = System.getProperty("ONLINE_JUDGE") != null;
    private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }

}