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]) if(sum(a) < s): print("No") exit(0) cnt = 0 ans = [] for i in range(n - 1, -1, -1): if(a[i] <= s): ans.append(i + 1) cnt += 1 s -= a[i]; if(s == 0): break print(cnt) print(*ans)