n, s = [int(x) for x in input().split()] ans = [] for i in range(n, -1, -1): if i <= s: s -= i ans.append(i) if s == 0: break else: print(-1) print(*reversed(ans))