import math input_list = list(map(float,input().split())) r, d = input_list res = math.sqrt(d ** 2 - r ** 2) print(res)