package No400番台; import java.util.Scanner; public class Q419 { public static void main(String[] args) { new Q419().solver(); } void solver() { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double ans = -1; if (a != b) ans = Math.sqrt(Math.abs(a * a - b * b)); else ans = Math.sqrt(a * a + b * b); System.out.println(ans); } }