r,x,y,x1,y1=map(int,input().split())
distance=((x1-x)**2+(y1-y)**2)**(1/2)
if(distance==0):
    print('0')
elif(distance%(2*r)==0):
    print(int(distance/(2*r)))
else:
    print(int(distance/(2*r))+1)
