import java.util.*;
public class MyClass {
    public static void main(String args[]) {
    Scanner x=new Scanner(System.in);
    int a,b,d,e,f,x1,x2,y1,y2,rad;
rad=x.nextInt();
x1=x.nextInt();
y1=x.nextInt();
x2=x.nextInt();
y2=x.nextInt();
a=x2-x1;
b=y2-y1;
double c=Math.sqrt((a*a+b*b))+2*rad;System.out.println(c);

if(c%(2*rad)==0)
System.out.println((int)(c/(2*rad)-1));
else if(c<=2*rad)
System.out.println(0);
else
{
    System.out.println((int)(c/(2*rad)));}

    }
}