from math import sqrt
ar = [int(s) for s in input().split()]
move =   sqrt ( (ar[1]-ar[3])**2 +  (ar[2]-ar[4])**2   ) /  (2*ar[0]) 
if int(move) == move :
    print(int(move))
else :
     print(int(move)+1)
