w = int(input()) d = int(input()) for _ in range(d): x = int(w / d**2) w -= x d -= 1 print(x)