from math import sqrt r,d = map(float,input().split()) h = sqrt(d ** 2 - r ** 2) print(h)