#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, x, y, x1, y1;
  cin >> r >> x >> y >> x1 >> y1;
  double d = sqrt(((x - x1) * (x - x1)) + ((y - y1) * (y - y1)));
  x = d / (2 * r);
  cout << ceil(x);
  return 0;
}
