import math W=float(input()) D=float(input()) while W>0: D2=D*D W1=math.floor(W/D2) W-=W1 D-=1 # print (W) print (W1)