a, b = map(int, input().split())
ans = max(a + b, a - b)
print(max(ans, a * b))

bb4ec6c8ae33056f681450fe4e2e69730b9b0544
<mask token>

<mask token>
print(max(ans, a * b))

a, b = map(int, input().split())
ans = max(a + b, a - b)
print(max(ans, a * b))
