fun main(args: Array<String>) {
    val line = readLine()!!
    val A = line.split(" ")[0].toInt()
    val B = line.split(" ")[1].toInt()

    val tasu = A + B
    val hiku = A - B
    val kakeru = A * B

    if (tasu >= hiku) {
        if (tasu >= kakeru) {
            println(tasu)
        } else {
            println(kakeru)
        }
    } else {
        if (hiku >= kakeru) {
            println(hiku)
        } else {
            println(kakeru)
        }
    }
}