import math def main(): a, b = list(map( int, input().split() )) if a == b: print(math.sqrt( a**2 + b**2 )) else: hypo = max(a, b) side = min(a, b) print(math.sqrt( hypo**2 - side**2 )) main()