def list_from_input():
    return list(map(int, input().split()))

import math
def main():
    r, x, y, x_, y_ = list_from_input()
    distance = ((x-x_)**2 + (y-y_)**2)**0.5
    print(math.ceil(distance / (2*r)))

main()