#!/usr/bin/env python
import math


r, x,y, x_linha, y_linha = [int(x) for x in raw_input().split()]

# print dist(x,y, x_linha, y_linha),2*r
print int(math.ceil(math.sqrt((x_linha-x)**2 + (y_linha - y)**2)/(2*r)))
