import numpy as np



a,b = list(map(int, input().split()))



ans = [a + b, a- b, a * b]



print((np.amax(ans)))
a,b = list(map(int, input().split()))



print((max(max(a+b, a-b), a*b)))
import numpy as np

a, b = list(map(int, input().split()))
ans = [a + b, a - b, a * b]
print((np.amax(ans)))

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

-import numpy as np - -ans = [a + b, a - b, a * b] -print((np.amax(ans))) +print((max(max(a + b, a - b), a * b)))