var values = readline().split('').map((elements)=>{
	return parseInt(elements)
})
var circleDistance = 2*values[0]
var path = Math.ceil( Math.sqrt(
	Math.pow(values[1] - values[3],2) + Math.pow(values[2] - values[4],2)
	)/circleDistance)
print(path)