import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt(); double c = sc.nextInt(); double d = sc.nextInt(); double e = sc.nextInt(); double f = sc.nextInt(); double pow2 = f - e + c * c / a / 4 + d * d / b / 4; System.out.println(Math.sqrt(pow2 / a)); } }