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