N, S = map(int, map(int, input().split())) ans = [] while S: if S >= N: ans.append(N) S -= N N -= 1 ans.reverse() print(len(ans)) print(*ans)