import java.util.*;
import java.io.*;
public class rotac{
public static void main(String args[]) throws IOException{
BufferedReader lector = new BufferedReader(new InputStreamReader(System.in));
String tmp[] = lector.readLine().split(" ");
int r = Integer.parseInt(tmp[0]);
int x1 = Integer.parseInt(tmp[1]);
int y1 = Integer.parseInt(tmp[2]);
int x2= Integer.parseInt(tmp[3]);
int y2 = Integer.parseInt(tmp[4]);
double hh = Math.hypot(x1-x2,y1-y2);
double h = hh-2*r;
System.out.println(hh);
if(h<0.0){
System.out.println(hh!=0.0?2:0);
return;
}
int d = (int)Math.floor(h/(2.0*r));
System.out.println(d+1);
}
}

