# -*- coding: utf-8 -*- import math r, d = map(float, input().split()) print(math.sqrt(d ** 2 - r ** 2))