from math import ceil
line = input().split()

r = int(line[0])
x = int(line[1])
y = int(line[2])
nx = int(line[3])
ny = int(line[4])

dist = ((nx - x)**2 + (ny - y)**2)**0.5

print(ceil(dist / (r*2)))
