a, b = map(int, input().split()) x = max(a, b) y = min(a, b) print((x*x-y*y)**.5)