n = int(input()) m = int(input()) result = [] for i in range(0,n+1,m*1000): result.append(i//m) print(max(result))