import math a,b=map(int,input().split()) ans=abs(a*a-b*b) print(math.sqrt(ans))