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