import sys

input = sys.stdin.readline

r, x, y, xx, yy = map(int, input().split())

dist = (x-xx)**2 + (y-yy)**2

ans =   dist / r

if ans % 1 == 0:
    print(ans)
else:
    print(ans + 1)











