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