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

c = max(a+b, a-b, a*b)

print(c)
def resolve():

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

    print((max(a+b, a-b, a*b)))

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

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


resolve()

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