import java.util.Scanner;


public class main {

	public static void main(String[] args) {
		int r,a,b,x,y;
		Scanner input = new Scanner(System.in);
		r = input.nextInt();
		a = input.nextInt();
		b = input.nextInt();
		x = input.nextInt();
		y = input.nextInt();
		int X = Math.abs(x - a);
		int Y = Math.abs(y - b);
		System.out.println(X * X);
		System.out.println(Y * Y);
		long square = Y * Y + X * X;
//		System.out.println(square);
//		square = input.nextLong();
//		System.out.println(square);
		double res = Math.sqrt(square);
		int result = (int)Math.ceil(res);
		if(result % (2 * r) == 0){
			System.out.println(result / (2 * r));
		}
		else{
			System.out.println(result / (2 * r) + 1);
		}

	}

}
