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