You are given two integers A and B. Find the largest value among A+B, A-B and A \times B.
a,b = map(int, input().split())
print(min(a+b, a-b, a*b))

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