object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val a, b = sc.nextInt
    val list = List(a * b, a - b, a + b)
    sc.close()

    println(list.max)
  }
}