import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc double argA = (double) (60 * h + m) / 2; argA (double) (60 * h + m) / 2 (double) (60 * h + m) 60 * h 60 h m 2 double argB = 6 * m; argB 6 * m 6 m double ax = 0; ax 0 double ay = 0; ay 0 double bx = 0; bx 0 double by = 0; by 0 if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		} argA >= 0 && argA <= 90 argA >= 0 argA 0 argA <= 90 argA 90 {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} ax = a * Math.cos(Math.toRadians(90 - argA)) ax a * Math.cos(Math.toRadians(90 - argA)) a Math.cos(Math.toRadians(90 - argA)) Math.cos Math Math.toRadians(90 - argA) Math.toRadians Math 90 - argA 90 argA ay = a * Math.sin(Math.toRadians(90 - argA)) ay a * Math.sin(Math.toRadians(90 - argA)) a Math.sin(Math.toRadians(90 - argA)) Math.sin Math Math.toRadians(90 - argA) Math.toRadians Math 90 - argA 90 argA if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		} argA > 90 && argA <= 180 argA > 90 argA 90 argA <= 180 argA 180 {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} ax = a * Math.cos(Math.toRadians(argA - 90)) ax a * Math.cos(Math.toRadians(argA - 90)) a Math.cos(Math.toRadians(argA - 90)) Math.cos Math Math.toRadians(argA - 90) Math.toRadians Math argA - 90 argA 90 ay = -a * Math.sin(Math.toRadians(argA - 90)) ay -a * Math.sin(Math.toRadians(argA - 90)) -a a Math.sin(Math.toRadians(argA - 90)) Math.sin Math Math.toRadians(argA - 90) Math.toRadians Math argA - 90 argA 90 if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		} argA > 180 && argA <= 270 argA > 180 argA 180 argA <= 270 argA 270 {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} ax = -a * Math.cos(Math.toRadians(270 - argA)) ax -a * Math.cos(Math.toRadians(270 - argA)) -a a Math.cos(Math.toRadians(270 - argA)) Math.cos Math Math.toRadians(270 - argA) Math.toRadians Math 270 - argA 270 argA ay = -a * Math.sin(Math.toRadians(270 - argA)) ay -a * Math.sin(Math.toRadians(270 - argA)) -a a Math.sin(Math.toRadians(270 - argA)) Math.sin Math Math.toRadians(270 - argA) Math.toRadians Math 270 - argA 270 argA if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		} argA > 270 && argA <= 360 argA > 270 argA 270 argA <= 360 argA 360 {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		} ax = -a * Math.cos(Math.toRadians(argA - 270)) ax -a * Math.cos(Math.toRadians(argA - 270)) -a a Math.cos(Math.toRadians(argA - 270)) Math.cos Math Math.toRadians(argA - 270) Math.toRadians Math argA - 270 argA 270 ay = a * Math.sin(Math.toRadians(argA - 270)) ay a * Math.sin(Math.toRadians(argA - 270)) a Math.sin(Math.toRadians(argA - 270)) Math.sin Math Math.toRadians(argA - 270) Math.toRadians Math argA - 270 argA 270 if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		} argB >= 0 && argB <= 90 argB >= 0 argB 0 argB <= 90 argB 90 {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} bx = b * Math.cos(Math.toRadians(90 - argB)) bx b * Math.cos(Math.toRadians(90 - argB)) b Math.cos(Math.toRadians(90 - argB)) Math.cos Math Math.toRadians(90 - argB) Math.toRadians Math 90 - argB 90 argB by = b * Math.sin(Math.toRadians(90 - argB)) by b * Math.sin(Math.toRadians(90 - argB)) b Math.sin(Math.toRadians(90 - argB)) Math.sin Math Math.toRadians(90 - argB) Math.toRadians Math 90 - argB 90 argB if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		} argB > 90 && argB <= 180 argB > 90 argB 90 argB <= 180 argB 180 {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} bx = b * Math.cos(Math.toRadians(argB - 90)) bx b * Math.cos(Math.toRadians(argB - 90)) b Math.cos(Math.toRadians(argB - 90)) Math.cos Math Math.toRadians(argB - 90) Math.toRadians Math argB - 90 argB 90 by = -b * Math.sin(Math.toRadians(argB - 90)) by -b * Math.sin(Math.toRadians(argB - 90)) -b b Math.sin(Math.toRadians(argB - 90)) Math.sin Math Math.toRadians(argB - 90) Math.toRadians Math argB - 90 argB 90 if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		} argB > 180 && argB <= 270 argB > 180 argB 180 argB <= 270 argB 270 {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} bx = -b * Math.cos(Math.toRadians(270 - argB)) bx -b * Math.cos(Math.toRadians(270 - argB)) -b b Math.cos(Math.toRadians(270 - argB)) Math.cos Math Math.toRadians(270 - argB) Math.toRadians Math 270 - argB 270 argB by = -b * Math.sin(Math.toRadians(270 - argB)) by -b * Math.sin(Math.toRadians(270 - argB)) -b b Math.sin(Math.toRadians(270 - argB)) Math.sin Math Math.toRadians(270 - argB) Math.toRadians Math 270 - argB 270 argB if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		} argB > 270 && argB <= 360 argB > 270 argB 270 argB <= 360 argB 360 {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		} bx = -b * Math.cos(Math.toRadians(argB - 270)) bx -b * Math.cos(Math.toRadians(argB - 270)) -b b Math.cos(Math.toRadians(argB - 270)) Math.cos Math Math.toRadians(argB - 270) Math.toRadians Math argB - 270 argB 270 by = b * Math.sin(Math.toRadians(argB - 270)) by b * Math.sin(Math.toRadians(argB - 270)) b Math.sin(Math.toRadians(argB - 270)) Math.sin Math Math.toRadians(argB - 270) Math.toRadians Math argB - 270 argB 270 double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2)); result (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2)) Math.sqrt Math Math.pow(bx - ax, 2) + Math.pow(by - ay, 2) Math.pow(bx - ax, 2) Math.pow Math bx - ax bx ax 2 Math.pow(by - ay, 2) Math.pow Math by - ay by ay 2 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		
		double argA = (double) (60 * h + m) / 2;
		double argB = 6 * m;
		double ax = 0;
		double ay = 0;
		double bx = 0;
		double by = 0;
		
		if (argA >= 0 && argA <= 90) {
		    ax = a * Math.cos(Math.toRadians(90 - argA));
		    ay = a * Math.sin(Math.toRadians(90 - argA));
		} else if (argA > 90 && argA <= 180) {
		    ax = a * Math.cos(Math.toRadians(argA - 90));
		    ay = -a * Math.sin(Math.toRadians(argA - 90));
		} else if (argA > 180 && argA <= 270) {
		    ax = -a * Math.cos(Math.toRadians(270 - argA));
		    ay = -a * Math.sin(Math.toRadians(270 - argA));
		} else if (argA > 270 && argA <= 360) {
		    ax = -a * Math.cos(Math.toRadians(argA - 270));
		    ay = a * Math.sin(Math.toRadians(argA - 270));
		}
		
		if (argB >= 0 && argB <= 90) {
		    bx = b * Math.cos(Math.toRadians(90 - argB));
		    by = b * Math.sin(Math.toRadians(90 - argB));
		} else if (argB > 90 && argB <= 180) {
		    bx = b * Math.cos(Math.toRadians(argB - 90));
		    by = -b * Math.sin(Math.toRadians(argB - 90));
		} else if (argB > 180 && argB <= 270) {
		    bx = -b * Math.cos(Math.toRadians(270 - argB));
		    by = -b * Math.sin(Math.toRadians(270 - argB));
		} else if (argB > 270 && argB <= 360) {
		    bx = -b * Math.cos(Math.toRadians(argB - 270));
		    by = b * Math.sin(Math.toRadians(argB - 270));
		}
		
		double result = (double) Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2));
		
		System.out.println(result);
	}
}