fun main (args : Array<String>) {
	val (a, b) = readLine()!!.split(" ")
	val A : Int = a.toInt()
	val B : Int = b.toInt()
	var plus : Int = A + B
	var minus : Int = A - B
	var times : Int = A * B
	var list : MutableList<Int> = mutableListOf()
	list.add(plus)
	list.add(minus)
	list.add(times)
	list.sort()
	println("${list[2]}")
}