#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, x1, y1, l1, r;
  float l;
  scanf("%d%d%d%d%d", &r, &x, &y, &x1, &y1);
  l1 = sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
  cout << l1 << endl;
  if (l1 == 0)
    cout << "0";
  else if (l1 < r)
    cout << "1";
  else if (l1 % r == 0)
    cout << l1 / r - 1;
  else
    cout << l1 / r;
}
