from sys import stdin def main(): R, D = map(float, input().split()) x = (D * D - R * R) ** 0.5 print(x) input = lambda: stdin.readline() main()