A, B = map(int,input().split()) print(abs(A ** 2 + (B ** 2 if A == B else -(B ** 2))) ** 0.5)