def main(): r, d = map(float, input().split()) ans = ((d + r) * (d - r)) ** 0.5 print(ans) if __name__ == "__main__": main()