def main(): N, S = map(int, input().split()) partial_sum = 0 for n in range(1, N+1): partial_sum += n if partial_sum >= S: break if partial_sum - S == 0: print(*range(1, n+1)) return partial = list(range(1, n+1)) partial.remove(partial_sum - S) print(*partial) if __name__ == "__main__": main()