#include <bits/stdc++.h>
using namespace std;
int main() {
  long long rad, p, q, r, s;
  cin >> rad >> p >> q >> r >> s;
  cout << ceil((sqrt((p - r) * (p - r) + (q - s) * (q - s))) / rad / 2) << "\n";
  return 0;
}
