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