
import java.util.Scanner

object Main {

  def read(): (Int, Int) = {
    val sc: Scanner = new Scanner(System.in)
    val a, b = sc.nextInt
    sc.close()
    (a, b)
  }


  def solve(a: Int,b: Int): Int = {
    Seq(a+b, a-b, a*b).max
  }


  def main(args: Array[String]): Unit = {
    val (a, b) = read()
    println(solve(a, b))
  }

}
