import math

inp = input()
r, x1, y1, x2, y2 = list(map(int, inp.split(' ')))
dist = math.sqrt((x2- x1)*(x2-x1) + (y2-y1)*(y2-y1))
print(dist)
if dist//(2*r) * 2*r == dist:
    print( int(dist//(2*r)))
else:
    print( int(dist//(2*r)))
