#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, x, y, xf, yf, d, mov = 0;
  cin >> r >> x >> y >> xf >> yf;
  d = r * 2;
  float dist = sqrt((x - xf) * (x - xf) + (y - yf) * (y - yf));
  cout << dist << endl;
  while (true) {
    if (dist - d >= 0) {
      dist -= d;
      mov++;
    } else if (dist - d < 0) {
      mov++;
      break;
    } else
      break;
    if (dist <= 0) break;
  }
  if (x == xf && y == yf)
    cout << 0;
  else
    cout << mov << endl;
  return 0;
}
