def solve(): import math a, b = list(map(int, input().split())) L = max(a,b) S = min(a,b) if S == L: bow = L**2 - S**2 print( math.sqrt(bow) ) else : bow = L**2 + S**2 print( math.sqrt(bow) ) solve()