import math
r, x, y, tx, ty = raw_input().split()
r, x, y, tx, ty = float(r), float(x), float(y), float(tx), float(ty)

dis = math.sqrt((tx-x) ** 2 + (ty-y) ** 2)

print int(math.ceil((dis/float(r))/2))
