fun main(args: Array<String>){
  val input = readLine()!!.split(" ")
  val a = input[0].toInt()
  val b = input[1].toInt()
  
  val tasu = a + b
  val hiku = a - b
  val kake = a * b
    
  var max = -100000
  
  if(tasu < hiku){
    max = hiku
  }
  else{
    max = tasu
  }
  
  if(max < kake){
    max = kake
  }
  println(max)
}