#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, x, y, xl, yl;
  cin >> r >> x >> y >> xl >> yl;
  double dist = hypot(abs(x - xl), abs(y - yl));
  cout << ceil(dist / (2 * r)) << endl;
  return 0;
}
