import math a, b = [int(x) for x in input().split(' ')] if b > a: a, b = b, a c = math.sqrt(a ** 2 - b ** 2) print(c)