def main(): w = int(input()) d = int(input()) rest_w = w while d > 0: pow = int(w / d**2) rest_w = rest_w - pow d -= 1 print(pow) if __name__ == "__main__": main()