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