import sys input = sys.stdin.readline n, s = map(int, input().split()) a = [1, 2] for i in range(n - 2): a.append(a[i] + a[i + 1]) ans = [] f = False for i in range(n - 1, -1, -1): if(f): f = False continue if(a[i] <= s): f = True ans.append(i + 1) s -= a[i]; if(s == 0): break else: print("No") exit(0) print("Yes") print(*ans[::-1])