import java.math.*  

fun main(args: Array<String>) {

  val arr = readLine()!!.split(" ")
  val a:Int = Integer.parseInt(arr[0])
  val b:Int = Integer.parseInt(arr[1])
  
  val num1 = a + b
  val num2 = a - b
  val num3 = a * b

  val num4 = Math.max(num1, num2);
  val num5 = Math.max(num3, num4);

  println(Integer.toString(num5));
}