import math a,b = map(int,input().split()) a,b = min(a,b),max(a,b) c = b * b - a * a print(math.sqrt(c))