MOD = 10 **9 + 7 INF = 10 ** 10 def main(): r,d = map(float,input().split()) print((d*d - r*r)**0.5) if __name__ == '__main__': main()