from math import sqrt
r, x, y, xx, yy = map(int, input().split())   
distance = sqrt((xx-x)*(xx-x)+(yy-y)*(yy-y))
diameter = 2*r
ans = distance//diameter
if distance%diameter!=0:
    ans+=1
print(round(ans)) 