from math import floor,ceil,sqrt

def distance(p1, p2):
    return sqrt((p1[0] - p2[0])**2 + (p1[1] - p2[1])**2)

r,x,y,a,b = list(map(int,input().split()))

r *= 2

print(ceil(distance((x,y),(a,b)) / r))
