import sys
import math

r,x,y,xn,yn = map(int,sys.stdin.readline().split())

difx = abs(x- xn)
dify = abs(y - yn)

distance = math.sqrt(difx*difx + dify * dify)

counter = int(math.ceil(distance / float(2*r)))

print counter


