a, b = map(int, input().split()) ans = (max(a, b)**2 - min(a, b)**2)**0.5 print(ans)