#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int r, x1, y1, x2, y2;
  cin >> r >> x1 >> y1 >> x2 >> y2;
  r *= 2;
  double dist = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
  long long int count = (ceil)(dist / (double)r);
  if (count < 0)
    cout << 0;
  else
    cout << count;
}
