# -*- coding: utf-8 -*-
"""
Created on Sat Jan 24 14:35:30 2015

@author: qf
"""
import math
r,x,y,a,b = map(int,raw_input().split())

d = math.sqrt((x-a)**2 + (y-b)**2)

print int(math.ceil(d / (2 * r)))
