#include <stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%f", 1/ (1.0 / a + 1.0 / b));
    return 0;
}