import math
from math import sqrt

def check(distance,radius):
	x=(distance/(2*radius))
	y=math.ceil(x)
	return y

(r,x,y,x_1,y_1)=map(int,input().split(" "))
distance= sqrt((x-x_1)**2+(y-y_1)**2)
print(check(distance,r))
