import java.io.*;
import java.util.*;
public class GFG {
	public static void main (String[] args) {
		//System.out.println("GfG!");
		Scanner in=new Scanner(System.in);
		long r,x,y,xx,yy;
		r=in.nextLong();
		x=in.nextLong();
		y=in.nextLong();
		xx=in.nextLong();
		yy=in.nextLong();
		
		long dist=(long)Math.ceil(Math.sqrt((xx-x)*(xx-x)+(yy-y)*(yy-y)));
		//if(dist%(2*r)!=0)
		System.out.println((long)Math.ceil(dist*1.0/(2*r)));
		//else System.out.println(dist/(2*r));
		System.out.println(dist);
	}
}