#include <iostream>
#include <stdio.h>
#include <string.h>
#include <cmath>
using namespace std;
int main()
{
double r, x, y, xx, yy;
while(scanf("%lf %lf %lf %lf %lf",&r, &x, &y, &xx, &yy) !=EOF)
{
double res = sqrt((x- xx) * (x - xx) + ( y - yy) * (y-yy));
int ans = (int)res/(r*2.0);
if(ans* 1.0 * 2.0 * r < res )
ans++;
printf("%d\n",ans);
}
return 0;
}
#include <stdio.h>
#include <string.h>
#include <cmath>
using namespace std;
int main()
{
double r, x, y, xx, yy;
while(scanf("%lf %lf %lf %lf %lf",&r, &x, &y, &xx, &yy) !=EOF)
{
double res = sqrt((x- xx) * (x - xx) + ( y - yy) * (y-yy));
int ans = (int)res/(r*2.0);
if(ans* 1.0 * 2.0 * r < res )
ans++;
printf("%d\n",ans);
}
return 0;
}