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 powans = (f - e) / a + (c * c + d * d) / (a * 4); System.out.println(Math.sqrt(powans)); } }