import java.util.*

fun main (args:Array<String>) {
    val (numA, numB) = readLine()!!.split(" ").map(String::toInt)
    var stack = Stack<Int>()
    stack.push(numA + numB)
    stack.push(numA - numB)
    stack.push(numA * numB)
    while(stack.size > 1){
        val a = stack.pop()
        val b = stack.pop()
        if(a > b) stack.push(a)
        else stack.push(b)
    }
    print(stack.pop())
}