import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines r,d = map(float,read().split()) answer = ((d + r) * (d - r)) ** .5 print(answer)