A - Add Sub Mul Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

2 つの整数 A, B が与えられます。 A+B, A-B, A \times B の中で最大の値を求めてください。

制約

  • -1000 \leq A,B \leq 1000
  • 入力はすべて整数である

入力

入力は以下の形式で標準入力から与えられる。

A B

出力

A+B, A-B, A \times B の中で最大の値を出力せよ。


入力例 1

3 1

出力例 1

4

3+1=4, 3-1=2, 3 \times 1=3 なので、この中で最大の値である 4 が答えになります。


入力例 2

4 -2

出力例 2

6

4 - (-2) = 6 が最大の値になります。


入力例 3

0 0

出力例 3

0

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