x,y = map(int, input().split()) if x > y: x,y = y,x from math import sqrt if x != y: print(sqrt(y**2-x**2)) else: print(sqrt(2**x))