#include <bits/stdc++.h>
using namespace std;
long double r, x, y, x2, y2;
int main() {
  cin >> r >> x >> y >> x2 >> y2;
  long double d = sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2));
  long double k = d / (sqrt(2) * r);
  long double k2 = (long double)(int)(k);
  cout << std::setprecision(0) << k + (k2 > k);
  return 0;
}
