from math import hypot, ceil


def main():
    r, x, y, x1, y1 = map(int, input().split())
    x -= x1
    y -= y1
    w = hypot(x, y)
    print(int(ceil(w * .5 / r)))


if __name__ == '__main__':
    main()
