values = list(map(int,(input()).split()))
distance = (((values[1]-values[3])**2)+((values[2]-values[4])**2))**0.5
if distance%(2*values[0])==0:
    print(int(distance/(2*values[0])))
else:
    print(int(distance/(2*values[0]))+1)