w = int(input()) d = int(input()) while d: y = w / d**2 s = int(y) w -= s d -= 1 print(int(y))