 fun main(args: Array<String>) {
    var str = readLine()
    if(str != null) {
        val ary = str.split(Regex("\\s+"))
        val a = ary[0].toInt()
        val b = ary[1].toInt()
        println("${a*b} ${(a+b)*2}")
    }
 }
