from math import sqrt

r,x,y,nx,ny=[int(element) for element in input().split(" ")]

distance=sqrt((x-nx)**2+(y-ny)**2)

answer=distance//(2*r)

if distance%(2*r)!=0:
    answer+=1

print(int(answer))