from sys import stdin
stdin.readline
def mp(): return list(map(int, stdin.readline().strip().split()))
def it():return int(stdin.readline().strip())

from math import sqrt,ceil
r,x,y,x1,y2=mp()
d=sqrt((x1-x)**2+(y2-y)**2)
print(ceil(d/(2*r)))

