import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int r=s.nextInt();
		int x=s.nextInt();
		int y=s.nextInt();
		int x1=s.nextInt();
		int y1=s.nextInt();
		double d=Math.sqrt((x-x1)*(x-x1)+(y-y1)*(y-y1));
		System.out.println(d);
		d=Math.ceil(d/(2*r));
		System.out.println((int)d);
	}
}
