import java.util.Scanner

object Main {
  def solve(A: Int, B: Int) = {
    import math.max
    max(max(A + B, A - B), A * B)
  }

  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    println(solve(sc.nextInt(), sc.nextInt()))
  }
}
