from math import sqrt def main(): r, d = map(float, input().split()) print(sqrt(d**2 - r ** 2)) if __name__ == "__main__": main()