i=input W,D=int(i()),int(i()) while D: s=int(W/(D*D)) W-=s D-=1 print(s)