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 = input().split()
a = int (A)
b = int (B)
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())
plus=a+b
minu=a-b
mul=a*b
li=[plus,minu,mul]
print(max(li))

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

Solution (Python):
a,b = [int(x) for x in input().strip().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=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):
from sys import stdin

A, B = stdin.readline().rstrip().split()
a = int(A)
b = int(B)

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=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())
c = [a+b, a-b, a*b]
print(max(c))

Solution (Python):
X = list(int(i) for i in input().split())

print(max(X[0]+X[1], X[0]-X[1], X[0]*X[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())
c=a+b
d=a-b
e=a*b
print(max([c,d,e]))

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 = A+B
D = A-B
E = A*B

print (max([C,D,E]))

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

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

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

Solution (Python):


a,b=map(int,raw_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 = map(int, input().split())
plus = a + b
minus = a - b
multi = a * b
print(max(plus, minus, multi))

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())
sum=a+b
sub=a-b
mul=a*b
if (sum>sub):
    if (sum>mul):
        print(sum)
    else:
       print(mul)
else: 
    if (sub>mul):
        print(sub)
    else:
        print(mul)

Solution (Python):

if __name__ == "__main__":
    a, b = map(int, input().split())
    ans = max(a+b, max(a-b, a*b))
    print(ans)

Solution (Python):
a, b = map(int, raw_input().strip().split(" "))

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

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

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    a,b = LI()

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




print(main())

Solution (Python):
def A(a, b):
    return max((a + b, a - b, a * b))

def em_input(s):
    a, b = map(int, s.split(" "))
    return A(a, b)

print(em_input(input()))

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 getinputdata():

    
    array_result = []    
    data = input()
    array_result.append(data.split(" "))

    flg = True

    try:
        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])


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(' '))
m = max(a + b,a - b)
print(max(m,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):
inp=input().split();
A=int(inp[0]);
B=int(inp[1]);

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

Solution (Python):
a,b=map(int,input().split());print(max(a+abs(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):





if __name__ == '__main__':
    a, b = list(map(int, input().split()))
    print(max(a + b, a - b, a * b))

Solution (Python):



def main():
	ab = input().split()
	a = int(ab[0])
	b = int(ab[1])

	MAX = max(a + b, a - b, a * b)
	print(MAX)
	
if __name__ == '__main__':
	main()

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):
num=input().split()
a=int(num[0])
b=int(num[1])
print(max([a+b,a-b,a*b]))

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

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

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

Solution (Python):

a, b = input().split()

a = int(a)
b = int(b)

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

Solution (Python):
from sys import stdin
a,b = map(int,stdin.readline().split())
print max([ a+b, a-b, a*b])

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

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

x = [1, 2, 3]

x[0] = a+b
x[1] = a-b
x[2] = a*b

print(max(x))

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):
nums = input().split()
numA = int(nums[0])
numB = int(nums[1])

answers = [numA + numB, numA - numB, numA * numB]
print(max(answers))

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())
res = [a + b, a - b, a * b]
print(max(res))

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()))
i=a+b
if(a-b>i):
    i=a-b
if(a*b>i):
    i=a*b
print(i)

Solution (Python):
ab =input().split()
a,b = int(ab[0]),int(ab[1])
x = -1000
if a + b > x:
  x = a + b
if a - b > x:
  x = a - b
if a * b > x:
  x =a * b

print(x)

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

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

Solution (Python):
a,b=input().split()
a=int(a)
b=int(b)
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):
import numpy as np

def calc(a , b):
    arr = np.array([0,0,0])
    arr[0] = a + b
    arr[1] = a - b
    arr[2] = a * b
    return np.max(arr)

l = list(map(int, input().split()))
print(calc(l[0], l[1]))

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

temp = []
temp.append(a+b)
temp.append(a-b)
temp.append(a*b)

print(max(temp))

Solution (Python):



input = raw_input().split(" ")

A = int(input[0])
B = int(input[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):

"""
Created on Sat May 26 21:35:06 2018

@author: sakas
"""

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

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

ar = sorted(arr)

print(ar[2])

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

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 = map(int,input().split())
ans = max((a + b), (a - b), (a * b))
print(ans)

Solution (Python):
import sys

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

add = A + B
sub = A - B
mul = A * B

ans = add
if sub > ans:
    ans = sub
if mul > ans:
    ans = mul

print(ans)

Solution (Python):



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

b.append(a[0]+a[1])
b.append(a[0]-a[1])
b.append(a[0]*a[1]) 

print (max(b))

Solution (Python):


input_string = input()
a, b = [int(x) for x in input_string.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(lambda x: int(x), input().split(" "))
print(max([a - b, a + b, a * b]))

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

a = int(a)
b = int(b)

sumab = a+b
subab = a-b
timesab = a*b
inl = [sumab,subab,timesab]

print(max(inl))

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

Solution (Python):
data = input().split(" ")
a = int(data[0])
b = int(data[1])
ans = []
ans.append(a+b)
ans.append(a-b)
ans.append(a*b)
ans.sort()
print(ans[2])

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

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

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 = 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
if(x>y):
    if(x>z):
        print(x)
    else:
        print(z)
else:
    if(y>z):
        print(y)
    else:
        print(z)

Solution (Python):


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

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

Solution (Python):
a, b = map(int, raw_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 = list(map(int,input().split()))
wk = 0
if a[0] + a[1] > a[0] - a[1]:
    wk = a[0] + a[1]
    if wk > a[0] * a[1]:
        print(wk)
    else:
        print(a[0] * a[1])
else:
    wk = a[0] - a[1]
    if wk > a[0] * a[1]:
        print(wk)
    else:
        print(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):
AB=input()
AB=AB.rstrip().split(" ")
A=int(AB[0])
B=int(AB[1])

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

Solution (Python):


a = input().split()

wa = int(a[0])+int(a[1])
minus = int(a[0])-int(a[1])
seki = int(a[0])*int(a[1])

if wa == minus and wa > seki and minus > seki:
    print(str(wa))
elif wa > minus and wa > seki:
    print(str(wa))
elif minus > wa and minus > seki:
    print(str(minus))
else:
    print(str(seki))

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

Solution (Python):
def main(a,b):
  return(max(a+b, a-b, a*b))

inp = input().split(" ")
inp_n = [int(i) for i in inp]

print(main(inp_n[0], inp_n[1]))

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

print(max(a+b,max(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 = list(map(int, input().split()))
answer = max(A + B, A - B, A * B)
print(answer)

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

Solution (Python):
if __name__ == '__main__':
    A, B = map(int, input().split())
    answer = max(A + B, A - B, A * B)
    print(answer)

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

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

Solution (Python):
import numpy as np
a, b = map(int, input().split())
ar = np.array([a+b, a-b, a*b])

print(np.max(ar))

Solution (Python):
a, b = [int(x) for x in raw_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):

input_lines = input().split()
N = int(input_lines[0])
M = int(input_lines[1])
print(max([N+M,N-M,N*M]))

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

Solution (Python):
a = input().rstrip().split()
A = int(a[0])
B = int(a[1])

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
max = 0
if(add>sub):
    max = add
    if(add < mul):
        max = mul
else:
    max = sub
    if(sub < mul):
        max = mul

print(max)

Solution (Python):
line = input()
line = line.split()

A = int(line[0])
B = int(line[1])
print(max(A + B, A - B, A * B))

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

X = A + B
Y = A - B
Z = A * B

if X >= Y and X >= Z:
    print(X)
elif Y >= X and Y >= Z:
    print(Y)
else:
    print(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 = input().split(' ')
a,b = int(a),int(b)

lis = []
lis.append(a+b)
lis.append(a*b)
lis.append(a-b)

print(max(lis))

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:
  print(a+b)
else:
  print(a-b)

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

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

Solution (Python):
tmp = input()
tmp = tmp.split()
A = int(tmp[0])
B = int(tmp[1])

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

Solution (Python):
l = input().split()

a = int(l[0])
b = int(l[1])

x = a * b
y = a + b
z = a - b

re_l = [x, y, z]

print(max(re_l))

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

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

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

a = int(A)
b = int(B)

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

print(ans)

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

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

Solution (Python):


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

c0 = a+b
c1 = a-b
c2 = a*b


if c0 >= c1:
	maxx = c0
else: maxx = c1
if c2 >= maxx:
	maxx = c2
print maxx

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

print(m())

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()]
sum = A + B
sub = A - B
mul = A * B
list = [sum, sub, mul]
print(max(list))

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

tasu = A + B
hiku = A - B
kakeru = A * B

print(max(tasu,hiku,kakeru))

Solution (Python):

numA, numB = map(int, input().split())

add = numA+numB
sub = numA-numB
mul = numA*numB

list = [add, sub, mul]

print(max(list))

Solution (Python):
a, b = (int(i) for i in 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())
 
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())
add = a + b
sum = a - b
mul = a * b

l = [add,sum,mul]
ans=sorted(l)
print(ans[2])

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

array = [A + B, A - B, A * B]
max = array[0]
if max < array[1]:
    max = array[1]
if max < array[2]:
    max = array[2]

print(max)

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

add = a+b
sub = a-b
mul = a*b

max = float("-inf")

if add > max:
    max = add
if sub > max:
    max = sub
if mul > max:
    max = mul

print(int(max))

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

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

Solution (Python):

a, b = map(int, input().split())
max = -99999999999999
X = [a+b,a-b,a*b]
for i in range(len(X)):
    if X[i] > max:
        max = X[i]

print(max)

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

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

wa = A + B
sa = A - B
seki = A * B

print(max(wa, sa, seki))

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

c = a + b
d = a - b
e = a * b

list = [c, d, e]
print(max(list))

Solution (Python):
if __name__ == '__main__':
    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 max <= a-b:
    max = a-b
if max <= a*b:
    max = a*b

print(max)

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

num = a + b
if num < a - b:
  num = a - b
  
if num < a * b:
  num = a * b
  
print(num)

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

mx = a + b

if a * b > mx:
    mx = a * b
if a - b > mx:
    mx = a - b

print(mx)

Solution (Python):
from sys import stdin

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

nums = []

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

print(max(nums))

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 = a+b
d = a-b
e = a*b
print(max(c,d,e))

Solution (Python):

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

r = [0,0,0]
r[0] = A + B
r[1] = A - B
r[2] = A * B


r.sort()
print(r[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):
n = list(map(int, input().split(' ')))


add = n[0] + n[1]
sub = n[0] - n[1]
mul = n[0] * n[1]

ans = max(add, sub, mul)
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())

x = a+b
y= a-b
z = a *b

print(max(x,y,z))

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

X=A+B
Y=A-B
Z=A*B

ans=[]

ans.append(X)
ans.append(Y)
ans.append(Z)


print(max(ans))

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

Solution (Python):
AB = list(int(i) for i in input().split())

list = []

list.append(AB[0]+AB[1])
list.append(AB[0]-AB[1])
list.append(AB[0]*AB[1])

print(max(list))

Solution (Python):



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


print("{}".format(max([a+b, a-b, a*b])))

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

b = a[0] + a[1]
c = a[0] - a[1]
d = a[0] * a[1]

if b >= c and b >= d:
  print(b)
elif c >= b and c >= d:
  print(c)
else:
  print(d)

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

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

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

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 = map(int, input().split())
C=[]
C.append(A+B)
C.append(A-B)
C.append(A*B)
print(max(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())

a1 = a + b
a2 = a - b
a3 = a * b

print(max(a1, max(a2, a3)))

Solution (Python):



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

pl = a + b
mi = a - b
mu = a * b

print(max(pl, mi, mu))

Solution (Python):


import math
import sys
import itertools
import numpy as np


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

c = a + b
d = a - b
e = a * b
answer = c
if c < d:
    answer = d
if answer < e:
    answer = e

print(answer)

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

s = A+B
d = A-B
p = A*B
print(max([s, d, p]))

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

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

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

Solution (Python):
a = input().split(" ")
A = int(a[0])
B = int(a[1])
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())

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())
t = a+b
h = a-b
k = a*b

if t>=h and t>=k:
    ans = t
elif h>=t and h >=k:
    ans = h
elif k>=t and k>=h:
    ans = k
print(ans)

Solution (Python):


import os
import sys

def main():
    data = input().split()
    A = int(data[0])
    B = int(data[1])
    print(max(A + B, A - B, A * B))

if __name__ == '__main__':
    main()

Solution (Python):
if __name__ == '__main__':
	a, b = map(int,input().split())

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

Solution (Python):
a,b = map(int,input().split())
temp = max(a+b,a-b)
print(max(temp,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):
import math
import numpy as np


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

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

big = max(lst)

print(big)

Solution (Python):

"""
Created on Sat May 26 21:00:01 2018

@author: maezawa
"""

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

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

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

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

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

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

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

max = -100000000000
if A * B > max:
    max = A * B
if A - B > max:
    max = A - B
if A + B > max:
    max = A + B

print(max)

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

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

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):
from sys import stdin


def main():
    A, B = [int(x) for x in stdin.readline().rstrip().split()]
    print(max([A + B, A - B, A * B]))


if __name__ == '__main__':
    main()

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

c=[]
c.append(a+b)
c.append(a-b)
c.append(a*b)
c.sort()

print(c[-1])

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

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) and (A-B) >= (A*B) else A*B)

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

AplusB = A + B
AsubB = A - B
AmulB = A * B

print(max(AplusB, AsubB, AmulB))

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

Solution (Python):


def main():
    a, b = [int(x.strip()) for x in input().split()]
    c = max(a + b, a - b, a * b)

    print(c)

if __name__ == '__main__':
    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())

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

if ans1 > ans2:
  if ans1 > ans3:
    print(ans1)
  else:
    print(ans3)
else:
  if ans2 > ans3:
    print(ans2)
  else:
    print(ans3)

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

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

A = inp[0]
B = inp[1]

wa = A + B
sa = A - B
seki = A * B

ans = max([wa, sa, seki])
    
print(ans)

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

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

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

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

R = max([A + B, A - B, A * B])

print(R)

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) = 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())

pre = []
pre.append(a + b)
pre.append(a - b)
pre.append(a * b)

print(max(pre))

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())

mul = A*B 
pull = A-B
plus = A+B

a = [mul, pull, plus]

print(max(a))

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

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

list = []

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

print(max(list))

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())
c = max((a+b),(a-b))
print(max(c,(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())
ans = max(a+b, a-b, a*b)
print(ans)

Solution (Python):

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

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

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,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())

c = [0,0,0]
c[0] = A+B
c[1] = A-B
c[2] = A*B

print(max(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())

ad = A + B
sb = A - B
ml = A * B

print(max(ad, sb, ml))

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

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

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()]
ans = max(a+b,a-b,a*b)
print(ans)

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

Solution (Python):
from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

A,B = ria()
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))


if __name__ == '__main__':
    main()

Solution (Python):
import sys
if __name__ == "__main__":
    A, B = list(map(int, (input().split(' '))))
    a = A + B
    b = A - B
    c = A * B
    ans = max(a, b, c)
    print(ans)

Solution (Python):
A,B=map(int,raw_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):
def main():
    A, B = map(int, input().split())

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


if __name__ == '__main__':
    main()

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

Solution (Python):
A, B = list(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())

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

print(X)

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(" "))
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):
line = input().split(' ')
a = int(line[0])
b = int(line[1])
print(max(a+b, a-b, a*b))

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

print(max(s,d,p))

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.append(a+b)
A.append(a-b)
A.append(a*b)

print(max(A))

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