W = int(input()) D = int(input()) while D: x = W // D**2 W -= x D -= 1 print(x)