
    fun main(args: Array<String>) {
        val (n, m) = readNext().split(" ")
        val a = Integer.parseInt(n)
        val b =  Integer.parseInt(m)
        val result = Math.max(Math.max(a + b , a - b), a * b)
        println(result)
    }


    fun readNext(): String {
        return readLine()!!
    }
