#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target( \
    "sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#pragma GCC optimize("-ffloat-store")
const long long INF = 0xFFFFFFFFFFFFFFFL;
const long long N = 1e9 + 7;
void solve() {
  long long r, x, y, a, b;
  cin >> r >> x >> y >> a >> b;
  long double ds = pow((pow(x - a, 2) + pow(y - b, 2)), 0.5);
  cout << ds << "\n";
  long long ans = ceil((ds / 2) / r);
  cout << ans;
}
int32_t main(int32_t argc, char **argv) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  t = 1;
  while (t--) solve();
  cerr << "\n"
       << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC
       << "ms\n";
  return 0;
}
