a,b = map(int,input().split())
c = 1 / a + 1 / b
d = 1 / c
print(f'{d:.1f}')