from math import sqrt def main(): a, b = map(int, input().split()) if a < b: a, b = b, a print(sqrt(a**2 - b**2)) if __name__ == "__main__": main()