import os
import math
r, x, y, x1, y1 = map(int, raw_input().split(" "))

dist = math.sqrt(math.pow(x-x1,2) + math.pow(y-y1,2))

if dist > 0:
    print int(math.ceil(dist / r)) - 1
else:
    print "0"
