100 atcoder#ABC098A. [ABC098A] Add Sub Mul

[ABC098A] Add Sub Mul

Score : 100100 points

Problem Statement

You are given two integers AA and BB. Find the largest value among A+BA+B, ABA-B and A×BA \times B.

Constraints

  • 1000A,B1000-1000 \leq A,B \leq 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the largest value among A+BA+B, ABA-B and A×BA \times B.

3 1
4

3+1=43+1=4, 31=23-1=2 and 3×1=33 \times 1=3. The largest among them is 44.

4 -2
6

The largest is 4(2)=64 - (-2) = 6.

0 0
0