import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int a=scanner.nextInt(); int b=scanner.nextInt(); if(a==b) { System.out.println(Math.sqrt(Math.pow(a, 2)*2)); return; } double c=Math.pow(Math.max(a, b),2)-Math.pow(Math.min(a, b), 2); System.out.println(Math.sqrt(c)); } }