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 = list(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]
L.sort()
print(L[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())
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):



def inpl(): return list(map(int, input().split()))


a, b = inpl()
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( ))
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
if B>=0:
	if Add>=Mul:
		print(Add)
	else:
		print(Mul)
else:
	if Sub>=Mul:
		print(Sub)
	else:
		print(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())
ans = a + b
if a - b > ans:
    ans = a - b

if a * b > ans:
    ans = a * b

print(ans)

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

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(input())
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

A,B = inpl()
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):
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):
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 = (int(_) for _ 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(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())
s,t,u=a+b,a-b,a*b
if s>=t and s>=u:
  print(s)
elif t>=s and t>=u:
  print(t)
else:
  print(u)

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={A+B, A-B, A*B}
print(max(ans))

Solution (Python):
A,B=map(int,input().split())
P=A+B
M=A-B
T=A*B
O=0
if(P>M):
  O=P
  if(P>T):
    O=P
  else:
    O=T
else:
  O=M
  if(M>T):
    O=M
  else:
    O=T
print(O)

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

Solution (Python):
A,B = list(map(int,input().split(" ")))
c = [0,0,0]
for i in range(3):
    if 0 == i:
        c[i] = A + B
    elif 1 == i:
        c[i] = A - B
    elif 2 == i:
        c[i] = A * B
print(max(c))

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

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):
x = list(map(int, input().split()))

Sum = x[0] + x[1]
Dif = x[0] - x[1]
Mul = x[0] * x[1]
print(max(Mul,Sum,Dif))

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 collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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):
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):
x,y = map(int,input().split())
a = x+y
b = x-y
c = x*y
print(max([a,b,c]))

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

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

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 = [a + b,a - b,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())
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):
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)
elif a*b > a+b and a*b > a-b:
    print(a*b)
else:
    print(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())

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

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

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

Solution (Python):
import sys

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

res = -10000
if a - b > res:
    res = a - b 
if a + b > res:
    res = a + b 
if a * b > res:
    res = a * b 
print(res)

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

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

print(max(c))

Solution (Python):
a, b = [int(m) for m in 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):
x,y=map(int,input().split());print(max(x*y,x+y,x-y))

Solution (Python):
x,y=input().split();print(max(eval(x+c+y)for c in"*+-"))

Solution (Python):
print((lambda x:max(eval(x[0]+c+x[1])for c in"*+-"))(input().split()))

Solution (Python):
number = input()
lis = number.split()


for num in range(len(lis)-1):
    add = int(lis[num]) + int(lis[num+1])
    pull = int(lis[num]) - int(lis[num+1])
    product = int(lis[num]) * int(lis[num+1])


mostbig = max([add,pull,product])
print(mostbig)

Solution (Python):
a=input()
b=a.split()
c=[int(i) for i in b]
t=c[0]+c[1]
h=c[0]-c[1]
k=c[0]*c[1]
ans=max([t,h,k])
print(ans)

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

Solution (Python):
a = list(map(int, input().split()))
x = [a[0] + a[1], a[0] - a[1], a[0] * a[1]]
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):


def main():
    A, B = list(map(int, input().split()))
    cul_list = []
    cul_list.append(A + B)
    cul_list.append(A - B)
    cul_list.append(A * B)

    print(max(cul_list))

if __name__ == '__main__':
    main()

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(10000)


def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))


def to_bin(x):
    return bin(x)[2:]



dp = None

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

main()

Solution (Python):
A,B = map(int,input().split())
sum = A + B
dif = A - B
pro = A * B
if sum > dif:
    if sum > pro:
        print(sum)
    else:
        print(pro)
elif dif > pro:
    print(dif)
else:
    print(pro)

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):
x,y = map(int,input().split())

a = [x+y,x-y,x*y]

print(max(a))

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)

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

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

Solution (Python):
data = list(map(int,input().split()))
a = data[0]
b = data[1]
import numpy as np
c = np.array([a +b,a - b, 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())
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, 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):


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

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

Solution (Python):

A, B = map(int, input().split())
print(sorted([A + B, A - B, A * B])[2])

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

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

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

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

Solution (Python):
N=input().split()
A=int(N[0])
B=int(N[1])
Ans=A+B
if(Ans<A-B):
  Ans=A-B
  
if(Ans<A*B):
  Ans=A*B
  
print(Ans)

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

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(" "))
m = 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):
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())

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)
elif a * b >= a + b and a * b >= a - b:
    print(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]=[int(i) for i in 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):
A, B = map(int, input().split())
print(max(A + B, A - B, A * B))

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

Q = A+B
W = A-B
E = A*B

print(max(Q,W,E))

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

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

rtn = A + B 
minus = A - B 
if rtn < minus:
    rtn = minus
multiply = A * B 
if rtn < multiply:
    rtn = multiply
print(rtn)

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())
ar = list()
ar.append(a+b)
ar.append(a-b)
ar.append(a*b)
print(max(ar))

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):
N = input().split()
for i in range(2):
    if i == 0:
        A = int(N[i])
    elif i == 1:
        B = int(N[i])

X_1 = A + B
X_2 = A - B
X_3 = A * B

max = X_1

if max < X_2:
    max = X_2
if max < X_3:
    max = X_3

print(max)

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())
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=A+B
D=A-B
E=A*B
ans=max(C,D)
ans=max(ans,E)
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() )
result=[]
s = a+b
result.append(s)
s = a*b
result.append(s)
s = a-b
result.append(s)
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 = 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,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())
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())
M = max(A+B,A-B,A*B)
print(M)

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 - Add Sub Mul

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    A, B = map(int, input().split())
    add = A + B
    sub = A - B
    mul = A * B
    print(max(add, sub, mul))


if __name__ == '__main__':
    main(sys.argv[1:])

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

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

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

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):
x, y = [int(s) for s in input().split()]
print(max([x + y, x - y, x * y]))

Solution (Python):
A, B = input().split(' ')
A = int(A)
B = int(B)
sum = A + B
dif = A - B
mul = A * B
max = sum
if max < dif:
    max = dif
if max < mul:
    max = mul
print(max)

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

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):
listA=list(map(int,input().split()))
A=listA[0]
B=listA[1]
listB=[A*B,A+B,A-B]
print(max(listB))

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

s = A + B
d = A - B
m = A * B

print(max(s, d, m))

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

Solution (Python):
a,b = map(int,input().split())
print(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]
e=max(b,c,d)
print (e)

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 = map(int, input().split())

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

Solution (Python):
A, B = map(int, input().split())
list = [A+B, A-B, A*B]
list.sort()
print (list[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())
list=[a+b,a-b,a*b]
print(max(list))

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

ans = a + b
if ans < a - b: ans = a - b
if ans < a * b: 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):
li = list(map(int,input().split()))
ans = [li[0]+li[1],li[0]-li[1],li[0]*li[1]]
ans.sort()
print(ans[2])

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

Solution (Python):



a,b = map(int, input().split())
summ = a+b
diff = a-b
prod = a*b

maxx = max(summ,diff,prod)
print(maxx)

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

Solution (Python):

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

result = []

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


print(max(result))

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 = max(A+B, A-B, A*B)
print(ans)

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
print(max(a+b,max(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):
h, y = map(int, input().split())
ans  = max(h + y, h - y, h * y)
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,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())
plus = a + b
minus = a - b
cross = a * b

max = plus

if minus > max:
	max = minus

if cross > max:
	max = cross

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 = (int(i) for i in input().split())
print(max(A+B,A-B,A*B))

Solution (Python):
def add_sub_mul(A, B):
    add = A + B
    sub = A - B
    mul = A * B
    return max(add, sub, mul)

def main():
    A, B = [int(i) for i in input().split()]
    print(add_sub_mul(A, B))

if __name__ == "__main__":
    main()

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

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

Solution (Python):
a=list(map(int,input().split()))
if (a[0]+a[1]>a[0]-a[1])&(a[0]+a[1]>a[0]*a[1]):
    print(a[0]+a[1])
elif (a[0]*a[1]>a[0]+a[1])&(a[0]*a[1]>a[0]-a[1]):
    print(a[0]*a[1])
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())
ans = -100000
if ans < a+b: 
    ans = a+b
if ans < a-b: 
    ans = a-b
if ans < a*b:
    ans = a*b
print(ans)

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

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

print('{}'.format(max([A+B,A-B,A*B])))

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

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):
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 = 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(map(int,input().split( )))
x = []
x.append(s[0]+s[1])
x.append(s[0]-s[1])
x.append(s[0]*s[1])
ans = max(x)
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(a+b, a-b, a*b))

Solution (Python):
a,b = map(int,input().split())
ans = a+b
if a-b > ans:
	ans = a-b
if a*b > ans:
	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())
x = a + b
y = a - b
z = a * b

print(max(x,y,z))

Solution (Python):


num = raw_input().split()

num[0] = int(num[0])
num[1] = int(num[1])

if num[0]+num[1] > num[0]-num[1]:
    if num[0]+num[1] > num[0]*num[1]:
        print num[0]+num[1]
    else:
        print num[0] * num[1]
else :
        if num[0]-num[1] > num[0]*num[1]:
            print num[0]-num[1]
        else:
            print num[0] * num[1]

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

h=int(data[0])
i=int(data[1])

c=h+i
if h-i>c: c=h-i
if h*i>c: c=h*i

print (c)

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

Solution (Python):
A, B = map(int,input().split())
l = sorted([A+B,A-B,A*B])
print(l.pop(-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=[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):
data = list(map(int,input().split()))
a = data[0]
b = data[1]
print(max(a+b,a-b,a*b))

Solution (Python):


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

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


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

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

Solution (Python):
from math import *
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]

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

Solution (Python):
l = list(map(int, input().split()))
a=l[0]
b=l[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):


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

if __name__ == '__main__':
    main()

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

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

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

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

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 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())
print(max([A+B,A-B,A*B]))

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

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

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


def calcMaxAddSubMul(A, B):
    return max([A+B, A-B, A*B])


print(calcMaxAddSubMul(A, B))

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

Solution (Python):
import sys
A = sys.stdin.readline()
a = A.rstrip()
s = a.split(' ')
s1 = int(s[0]) + int(s[1])
s2 = int(s[0]) - int(s[1])
s3 = int(s[0]) * int(s[1])

print(max(s1,s2,s3))

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

n_sum = n[0] + n[1]
n_sub = n[0] - n[1]
n_mul = n[0] * n[1]

ans = max(n_sum,n_sub,n_mul)
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())
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 = tuple(map(lambda x: int(x), 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__':
    inputs = list(map(int, input().split()))
    numbers = []
    numbers.append(inputs[0] + inputs[1])
    numbers.append(inputs[0] - inputs[1])
    numbers.append(inputs[0] * inputs[1])
    print(max(numbers))