def solve(): a, b = list(map(int, input().split())) # 整数 L = max(a,b) S = min(a,b) bow = min(L**2-S**2) print( bow ) solve()