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