import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val str:String = StdIn.readLine()

    val A:Int = str.split(" ")(0).toInt
    val B:Int = str.split(" ")(1).toInt

    val sum:Int = A + B
    val sub:Int = A - B
    val mul:Int = A * B

    println(List(sum, sub, mul).max)
  }
}
