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