w = int(input()) d = int(input()) while d > 0: work_amount = w // d**2 if d == 1: print(work_amount) w -= work_amount d -= 1