import math
inp=raw_input()
inp=inp.split(" ")
for i in range(0,len(inp)):
    inp[i]=int(inp[i])

distance=math.sqrt(((inp[1]-inp[3])**2) + ((inp[2]-inp[4])**2))

steps=math.ceil(distance/(inp[0]*2))
print int(steps)
