import scala.io.StdIn
object Main extends App {
  val List(a,b) = StdIn.readLine().split(" ").map(_.toInt).toList
  var answer = a + b
  if (answer < a - b) answer = a - b
  if (answer < a * b) answer = a * b
  println(answer)
}
