import math
r, x, y, xx, yy = map(int, input().split())
if x == xx and y == yy:
    print(0)
else:
    dis = (xx - x)**2 + (yy - y)**2
    d = math.sqrt(abs(dis))
    pins = math.ceil(d / (2 * r))
    print(pins)
