a,b=map(int,input().split()) print(abs(a*a+(-b*b if a!=b else b*b))**0.5)