N,S = map(ihnt,input().split()) import sys if S <= N: print(S) exit() tmp = 0 ans = [] for i in range(N,0,-1): if tmp + i <= S: ans.append(i) tmp += i else: break if S - tmp > 0: ans.append(S - tmp) print(*reversed(ans))