#include <bits/stdc++.h>
int main() {
  long long int r, x, y, x1, y1, a;
  double d;
  scanf("%lld%lld%lld%lld%lld", &r, &x, &y, &x1, &y1);
  d = sqrt(((x1 - x) * (x1 - x)) + ((y1 - y) * (y1 - y)));
  printf("%lf ", d);
  a = ceil(d / (2 * r));
  printf("%lld", a);
  return 0;
}
