from math import sqrt, ceil
r, x1, y1, x2, y2 = map(int, raw_input().split())
print int(
    ceil(
        sqrt(
            pow(float((x2 - x1)), 2) + 
            pow(float((y2 - y1)), 2)
        ) / (2*r)
    )
)
