W = int(input()) D = int(input()) ans = 0 for i in range(1,D+1): ans = int(W/(D-i+1)**2) W -= ans print(ans)