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