r,x,y,x1,y1=map(int,input().split())
import math
d=int(math.sqrt(pow(x1-x,2)+pow(y1-y,2)))
print(int(math.ceil(d/(2*r))))
    
            
            
            
            
        
        
        
