import sys
from collections import *
from heapq import *
import math
import bisect
#def input():
    #return sys.stdin.readline()

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