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