#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, x, y, x_dash, y_dash, steps;
  double distance;
  cin >> r >> x >> y >> x_dash >> y_dash;
  distance = sqrt((x_dash - x) * (x_dash - x) + (y_dash - y) * (y_dash - y));
  cout << distance << endl;
  steps = ceil(distance / (2 * r));
  cout << steps;
  return 0;
}
