import java.io.*; import java.util.Scanner; public class Main_yukicoder735 { private static Scanner sc; private static Printer pr; private static void solve() { double r = sc.nextDouble(); double d = sc.nextDouble(); pr.printf("%.7f%n", Math.sqrt(d * d - r * r)); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }