X,Y=map(int,input().split()) Y+=1 sX=int(Y**.5)+1 sY=int(Y**.5)+1 cnt=[0]*Y for x in range(-sX,sX+1): for y in range(-sY,sY+1): d=x*x+y*y if d