# coding: utf-8 def main(): r, d = map(float, input().split(' ')) a = (d ** 2 - r ** 2) ** (0.5) print(a) if __name__ == '__main__': main()