a,b = [int(i) for i in input().split()] c = 0 if a > b: c = (a**2-b**2)**0.5 elif a < b: c = (b**2-a**2)**0.5 else: c = (a**2+b**2)**0.5 print(c)