Problem:
 Score : 100 points    Problem Statement You are given two integers A and B .
Find the largest value among A+B , A-B and A \times B .      Constraints  -1000 \leq A,B \leq 1000  All values in input are integers.         Input Input is given from Standard Input in the following format:  A  B       Output Print the largest value among A+B , A-B and A \times B .        Sample Input 1 3 1      Sample Output 1 4  3+1=4 , 3-1=2 and 3 \times 1=3 . The largest among them is 4 .       Sample Input 2 4 -2      Sample Output 2 6  The largest is 4 - (-2) = 6 .       Sample Input 3 0 0      Sample Output 3 0

Solution (Python):
A, B = map(int, input().split())

print(max(A+B, A-B, A*B))

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

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A, B = tuple(int(num) for num in input().split())

plus = A + B
mat = A * B
sub = A - B
print(max(plus, mat, sub))

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

Solution (Python):
a,b=map(int, input().split()) 
box = [a+b,a-b,a*b]
print(max(box))

Solution (Python):
A, B = map(int, input().split())

print(max(A + B, A - B, A * B))

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
a, b = [int(i) for i in input().split()]
print(max(a + b, a - b, a * b))

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a,b=map(int,input().split())
    print(max([a+b,a-b,a*b]))

main()

Solution (Python):



import sys













def main():
    a, b = (int(x) for x in sys.stdin.readline().split())
    ans = max(a + b, a - b, a * b)
    print(ans)
    


if __name__ == "__main__":
    
    main()

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

Solution (Python):
a,b=[int(i) for i in input().split()]
print(max(a+b,a-b,a*b))

Solution (Python):
A, B = map(int, input().split())
 
print(max(A+B, A-B, A*B))

Solution (Python):

A,B = map(int, input().split())
print(max(A+B,A-B,A*B))

Solution (Python):

a, b = [int(s) for s in input().split()]
print(max(a + b, a - b, a * b))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

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

Solution (Python):

A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):
a, b = map(int, input().split())
c = max(a+b,a-b,a*b)
print (c)

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

Solution (Python):
A,B = map(int,input().split())
print(max([A + B,A - B,A * B]))

Solution (Python):
a,b=map(int,input().split())

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

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

Solution (Python):
a, b = [int(v) for v in input().split(' ')]
print(max(a + b, a - b, a * b))

Solution (Python):
import sys


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

isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

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

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

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

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

Solution (Python):
A,B = map(int,input().split())

print(max(A+B,A-B,A*B))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A, B = map(int,input().split())
print(max([A+B,A-B,A*B]))

Solution (Python):
a, b=map(int, input().split())
temp=a+b
if(a*b)>temp:
    temp=a*b
if(a-b)>temp:
    temp=a-b
print(temp)

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

Solution (Python):
a,b=map(int,input().split())
l=[a+b,a-b,a*b]
print(max(l))

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

Solution (Python):
A,B = map(int,input().split())
print(max([A+B,A-B,A*B]))

Solution (Python):
a,b=map(int,input().split())
d = a+b
e = a-b
f= a*b
g = max(d,e,f)
print(g)

Solution (Python):
a,b = [int(i) for i in input().split()]

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

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

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A,B=map(int,input().split())
print(max(A+B,A-B,A*B))

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

Solution (Python):
a, b = map(int, input().split())
l = [(a + b), (a - b), (a * b)]

print(max(l))

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

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

Solution (Python):
l = list(map(int, input().split()))
a = l[0]
b = l[1]

ans1 = a + b
ans2 = a - b
ans3 = a * b

print(max(ans1, ans2, ans3))

Solution (Python):
A, B = map(int, input().split())

print(max(A + B, A - B, A * B))

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

Solution (Python):
a, b = map(int, input().split())
print(max([a+b, a-b, a*b]))

Solution (Python):
a,b=map(int,input().split())
d=a+b
s=a-b
m=a*b

print(max(d,s,m))

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

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

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

Solution (Python):
A, B = (int(x) for x in input().split())
print(max(max(A+B, A-B), A*B))

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

Solution (Python):
A, B = list(map(int, input().split()))
print(max([A+B, A-B, A*B]))

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

Solution (Python):
A,B = (int(x) for x in input().split())

result = [A+B,A-B,A*B]

print(max(result))

Solution (Python):

def resolve():
    (A,B)=(int(i) for i in input().split())
    print(max([A-B,A+B,A*B]))



if __name__ == "__main__":
    resolve()

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

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

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

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

Solution (Python):
a,b = map(int,input().split())
add = a + b
sub = a - b
mul = a * b
x = [add,sub,mul]
print(max(x))

Solution (Python):
A, B = map(int, input().split())

print(max(A+B, A-B, A*B))

Solution (Python):
s=input()
S=s.split()
a=0
b=0
c=0
a=int(S[0])+int(S[1])
b=int(S[0])-int(S[1])
c=int(S[0])*int(S[1])
if a>=b and a>=c:
    print(a)
elif b>=a and b>=c:
    print(b)
elif c>=a and c>=b:
    print(c)

Solution (Python):
x = list(map(int,input().split()))

print(str(max(int(x[0])+int(x[1]),int(x[0])*int(x[1]),int(x[0])-int(x[1]))))

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

Solution (Python):
a = list(map(int,input().split()))
A=a[0]
B=a[1]
print(max(A+B,A-B,A*B))

Solution (Python):
A, B = map(int, input().split())

print(max(A+B, A-B, A*B))

Solution (Python):
s,t=map(int,input().split());print(max(s+t,s-t,s*t))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
A, B = tuple(map(int, input().split()))
print(max(A + B, A - B, A * B))

Solution (Python):
A,B=map(int,input().split())
ans=[A+B,A-B,A*B]
print(max(ans))

Solution (Python):
a,b=map(int,input().split())
ma=max(a+b,a-b,a*b)
print(ma)

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

Solution (Python):
A, B = map(int, input().split())

print(max(A+B,max(A-B,A*B)))

Solution (Python):
A,B = map(int, input().split())

print(max(A+B, A-B, A*B))

Solution (Python):
a,b = map(int,input().split())
num = [a+b,a-b,a*b]
print(max(num))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Solution (Python):
A, B = map(int, input().split())
print(max([A + B, A - B, A * B]))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    print(max(a + b, a - b, a * b))


if __name__ == '__main__':
    slove()

Solution (Python):
A,B=map(int,input().split())

li=[]

li.append(A+B)
li.append(A-B)
li.append(A*B)

ans=sorted(li)

print(ans[2])

Solution (Python):
A,B = map(int, input().split())

print(max(A+B, A-B, A*B))

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

Solution (Python):
A,B=map(int,input().split());print(max(A-B,A+B,A*B))

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

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

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

Solution (Python):

A, B = map(int, input().split())






print(max(A+B, A-B, A*B))

Solution (Python):
a,b = map(int, input().split())

s1 = a + b
s2 = a - b
s3 = a * b

print(max(s1,s2,s3))

Solution (Python):
def aa098():
    a,b = list(map(int, input().split()))
    c = [a+b, a-b, a*b]
    print(max(c))

aa098()

Solution (Python):
A,B = map(int,input().split(" "))

print(max([A+B,A-B,A*B]))

Solution (Python):
A, B = map(int, input().split())

print(max(A + B, A - B, A * B))

Solution (Python):
a, b = map(int, input().split())
p=a+b
t=a*b
m=a-b
print(max(p,t,m))

Solution (Python):
a, b = map(int, input().split())
print(max([a*b, a-b, a+b]))

Solution (Python):
A,B = [int(x) for x in input().split()]
a = A+B
b = A*B
c = A-B
print(max(a,b,c))

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

Solution (Python):
A,B=map(int,input().split())
print(max(A-B,A+B,A*B))

Solution (Python):
A,B = map(int,input().split())

if A+B>=A-B and A+B>=A*B:
  print(A+B)
elif A-B>=A+B and A-B>=A*B:
  print(A-B)
else:
  print(A*B)

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A*B,A-B))

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

Solution (Python):
a,b = map(int,input().split())
print(max([a+b,a-b,a*b]))

Solution (Python):
A,B=map(int,input().split())
a=A+B
b=A-B
c=A*B
print(max(a,b,c))

Solution (Python):
a, b = map(int, input().split())
max = a+b
if max < a - b:
    max = a-b
if max < a * b:
    max = a*b
print(max)

Solution (Python):
A, B = map(int, input().split())

ans = max(A+B, A-B)
ans = max(ans, A*B)

print(ans)

Solution (Python):
A, B = map(int, input().split())
print(max(
    A + B,
    A - B,
    A * B
))

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A,B = (int(i) for i in input().split())
ans = max(A+B,A-B,A*B)
print(ans)

Solution (Python):
A, B= map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A,B=[int(i) for i in input().split()]
print(max(A+B,A-B,A*B))

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

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

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

Solution (Python):
a,b = map(int, input().strip().split(' '))
print(max(a+b,a-b,a*b))

Solution (Python):
a,b=map(int,input().split())
s=[a+b,a-b,a*b]
print(max(s))

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

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,max(A-B,A*B)))

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
a, b = map(int, input().split())

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

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

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

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
A, B = map(int, input().split())

print(max(A+B, A-B, A*B))

Solution (Python):
a, b = (int(i) for i in input().split())

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

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

Solution (Python):
A,B =[int(x) for x in input().split()]
print(max(A+B,A-B,A*B))

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

Solution (Python):
A, B = map(int, input().split())
print(max(A*B,A-B,A+B))

Solution (Python):
A, B = map(int, input().split())

result=[]

result.append(A*B)
result.append(A-B)
result.append(A+B)

print(max(result))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
a,b = map(int,input().split())
print(max([a+b,a-b,a*b]))

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

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

Solution (Python):
a,b = map(int,input().split())
print(max([a+b,a-b,a*b]))

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

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

Solution (Python):

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

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

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

Solution (Python):
A, B = map(int, input().split())

print(max([A+B, A-B, A*B]))

Solution (Python):
s=list(input().split())
a=int(s[0])
b=int(s[1])
sum=a+b
minus=a-b
kakeru=a*b

print(max(sum,minus,kakeru))

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

Solution (Python):
a , b = [int(i) for i in input().split()]

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

print(max(answers))

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

Solution (Python):
A, B = map(int, input().split())

print(max(A + B, A - B, A * B))

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

Solution (Python):

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

Solution (Python):
A,B = map(int,input().split())

print(max(A+B,A-B,A*B))

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

Solution (Python):

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

Solution (Python):
a,b=[int(s) for s in input().split()]
print(max([a+b,a-b,a*b]))

Solution (Python):
A, B = map(int, input().split())
print(max(A + B, A - B, A * B))

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

Solution (Python):
A , B = map(int,input().split())

print(max(A+B,A-B,A*B))

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

Solution (Python):
def main(a, b):
    add = a + b
    sub = a - b
    mul = a * b

    return max(add, sub, mul)


if __name__ == "__main__":
    a, b = map(int, input().split(' '))
    print(main(a, b))

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

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

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A,B = map(int,input().split())

a1 = A+B
a2 = A-B
a3 = A*B

print(max(a1,a2,a3))

Solution (Python):
a,b=map(int,input().split())

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

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

Solution (Python):
A, B = map(int,input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
a, b = map(int,input().split())
print(max([a+b, a-b, a*b]))

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

Solution (Python):
a,b = map(int,input().split())
x = a +b
y = a- b
z = a*b
maxNumber = x
if maxNumber < y:
    maxNumber = y
if maxNumber < z:
    maxNumber = z
print(maxNumber)

Solution (Python):
(a, b) = (int(tok) for tok in input().split())
print(max(a + b, a - b, a * b))

Solution (Python):
A, B = map(int, input().split())
r = max(A+B, A-B, A*B)
print(r)

Solution (Python):
a = [int(_) for _ in input().split()]
if len(a) == 2 and -1000 <= a[0] <= 1000 and -1000 <= a[1] <= 1000:
    print(max(a[0] + a[1], a[0] - a[1], a[0] * a[1]))
else:
    print('hoge!')

Solution (Python):
S = input().split()
a, b, = int(S[0]), int(S[1])
print(max([a + b, a - b, a * b]))

Solution (Python):
num = input().split()
a, b =int(num[0]), int(num[1])

ans = sorted([a+b, a-b, a*b])

print(ans[-1])

Solution (Python):
import sys
from collections import deque
from collections import  Counter
import statistics
import math

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

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

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

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

Solution (Python):
import sys
import math
from fractions import gcd





def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())


 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""

A, B =  map(int, sys.stdin.readline().split())

print(max(A + B, max(A - B, A * B)))

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

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

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

Solution (Python):


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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

A, B = MAP()

print(max(A+B, A-B, A*B))

Solution (Python):
import sys
a, b = list(map(int, sys.stdin.readline().strip().split(' ')))
sys.stdout.write(str(max(a+b, a-b, a*b)) + '\n')

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

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

Solution (Python):


def main():

    A,B = map(int,input().split())
    print(max(max(A*B,A+B),A-B))


if __name__== "__main__":
    main()

Solution (Python):
A,B = list(map(int,input().split()))
print(max(A+B,A-B,A*B))

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

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

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

Solution (Python):
a,b=map(int,input().split())
print(a+b if a+b>a-b and  a+b>a*b else  a-b if a-b>a*b else a*b)

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A,B=map(int,input().split())
print(max(A*B,A+B,A-B))

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

Solution (Python):
a, b = map(int, input().split())

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

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

Solution (Python):
A,B = list(map(int,input().split()))
print(max(A+B,A-B,A*B))

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

Solution (Python):
A,B=map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
a,b = map(int, input().split())
ans = []

ans.append(a+b)
ans.append(a-b)
ans.append(a*b)

print(max(ans))

Solution (Python):
A, B = map(int, input().split())
print(max([A + B, A - B, A * B]))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

Solution (Python):
def main():
    A, B = map(int, input().split())
    return max(A+B, A*B, A-B)


if __name__ == '__main__':
    print(main())

Solution (Python):
a, b = map(int, input().split())
add = a + b
sub = a - b
Mul = a * b
print(max(add, sub, Mul))

Solution (Python):
a, b = map(int, input().split())
print(max([a+b, a-b, a*b]))

Solution (Python):
a, b = map(int, input().split())
print(max([a + b, a - b, a * b]))

Solution (Python):
A, B = map(int, input().split())
print(max([A+B, A-B, A*B]))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

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

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


if __name__ == "__main__":
    resolve()

Solution (Python):
A, B = map(int, input().split())
arr = [A + B, A - B, A * B]
print(max(arr))

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

Solution (Python):
a, b = (int(i) for i in input().split())
print(max(a+b,a-b,a*b))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

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

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

Solution (Python):
A, B = [int(x) for x in input().split()]
print(max([A+B,A-B,A*B]))

Solution (Python):
A, B = map(int, input().split())

print(max(A+B, A-B, A*B))

Solution (Python):
a,b=map(int,input().split())
x=a+b
y=a-b
z=a*b
print(max(x,y,z))

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

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

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

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

Solution (Python):
A, B = map(int, input().split())
print(max(A + B, A - B, A * B))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

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

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

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a, b = map(int, input().split())

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

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

Solution (Python):
A, B = map(int, input().split())
print (max(A+B, A-B, A*B))

Solution (Python):
A,B=map(int,input().split())

print(max(A+B,A-B,A*B))

Solution (Python):
def test():
    a,b = map(int,input().split())
    c = a * b
    d = a - b
    f = a + b
    s = list([c,d,f])
    print(max(s))


if __name__ == "__main__":
    test()

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

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

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

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
def main():
    A, B = map(int, input().split())

    print(max(A+B, A-B, A*B))


main()

Solution (Python):
A,B = map(int, input().split())

print(max(A+B,A-B,A*B))

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

Solution (Python):
A,B = map(int,input().split())

print(max(A+B,A-B,A*B))

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

Solution (Python):

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

Solution (Python):
A, B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
a,b = map(int, input().split())

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

Solution (Python):
from sys import stdin
A,B = [int(x) for x in stdin.readline().rstrip().split()]
a1 = A + B
a2 = A - B
a3 = A * B

print(max(a1,a2,a3))

Solution (Python):
a,b = map(int,input().split())
A = [a+b,a-b,a*b]
A.sort()
print(A[-1])

Solution (Python):
A,B = map(int,input().split())

print(max(A+B,A-B,A*B))

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

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

Solution (Python):
A,B=map(int,input().split())
print(max(A+B,A-B,A*B))

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

Solution (Python):
A, B = map(int, input().rstrip().split())
print(max(A+B, A-B, A*B))

Solution (Python):

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

Solution (Python):


A, B = map(int, input().rstrip().split())
print(max(A+B, A-B, A*B))

Solution (Python):
IN = [int(_) for _ in input().split()]
A = IN[0]
B = IN[1]

print(max(A+B,A-B,A*B))

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

Solution (Python):
a,b=map(int,input().split())

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

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

Solution (Python):
a,b = map(int,input().split())
print(max([a+b,a-b,a*b]))

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

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

Solution (Python):
A,B = map(int,input().split())
print(max((A-B),(A+B),(A*B)))

Solution (Python):
A,B=map(int,input().split())

print(max(A+B,A-B,A*B))

Solution (Python):
A, B = map(int, input().split())
C = sorted([A+B, A-B, A*B], reverse=True)
print(C[0])

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

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

Solution (Python):
A, B = list(map(int,input().split()))
add = A + B 
sub = A - B
mul = A * B
print(max(add,sub,mul))

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

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

Solution (Python):
A, B = map(int, input().split())
ans = max(max(A+B, A-B), A*B)
print(ans)

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

Solution (Python):
a,b=map(int,input().split());print(max(a+b,a-b,a*b))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

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

Solution (Python):
a, b = map(int, input().split())  

ans1 = a + b
ans2 = a - b
ans3 = a * b

print(max(ans1,ans2,ans3))

Solution (Python):
A, B = list(map(int,input().split()))
ans = []
ans.append(A+B)
ans.append(A-B)
ans.append(A*B)

print(max(ans))

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

Solution (Python):
x,y = map(int,input().split())
nlist = [x+y,x-y,x*y]
print(max(nlist))

Solution (Python):
a, b = map(int, input().split())

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

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

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

Solution (Python):
a,b = map(int,input().split())
print(max([a+b,a*b,a-b]))

Solution (Python):
a=list(map(int,input().split()))
print(max(a[0]+a[1],a[0]-a[1],a[0]*a[1]))

Solution (Python):
A, B = map(int, input().split())

print(max([A+B, A-B, A*B]))

Solution (Python):

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

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

Solution (Python):
A, B = map(int, input().split())
print(max(A + B, A - B, A * B))

Solution (Python):
a, b = map(int, input().split())
hako = [a + b, a - b, a * b]
print(max(hako))

Solution (Python):
a, b = map(int, input().split())
hako = []
hako.append(a + b)
hako.append(a - b)
hako.append(a * b)
print(max(hako))

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

Solution (Python):
A,B = list(map(int,input().split()))
print(max(A+B,A-B,A*B))

Solution (Python):
A,B = map(int,input().split())
add = A+B
dif = A-B
cro = A*B
X = [add,dif,cro]
print(max(X))

Solution (Python):
A,B = map(int,input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
A, B = map(int, input().split())
print(max(A+B, A-B, A*B))

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

Solution (Python):
a,b = map(int,input().split())
l = [a+b, a-b, a*b]
print(max(l))

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

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

Solution (Python):
a,b = map(int,input().split())
MAX = a + b
if a - b > MAX:
    MAX = a - b
if a * b > MAX:
    MAX = a * b
print(MAX)

Solution (Python):
a, b = list(map(int, input().split()))
print(max([a+b, a-b, a*b]))

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

Solution (Python):

A,B = [int(i) for i in input().split()]

if A+B >= A-B and A+B >= A*B:
    print(A+B)
elif A-B >= A+B and A-B >= A*B:
    print(A-B)
elif A*B >= A+B and A*B >= A-B:
    print(A*B)

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

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