import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); double one = scanner.nextDouble(); double two = scanner.nextDouble(); System.out.printf("%.1f", 1.0 / ( 1.0 / one + 1.0 / two)); } }