100980: [AtCoder]ABC098 A - Add Sub Mul

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

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

Input

题意翻译

给你 $2$ 个正整数 $a$ 和 $b$,请你求出 $a+b$ , $a-b$ 和 $a\times b$ 的最大值。

加入题单

算法标签: