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