r,d=io.read("n","n") print(math.sqrt(d^2-r^2))