x,y = map(int, input().split()) if x > y: x,y = y,x from math import sqrt print(sqrt(y**2-x**2))