import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val i1 = sc.nextInt()
    val i2 = sc.nextInt()
    val rectange = i1 * i2
    val rectanglePerimeter = 2 * (i1 + i2)
    println("${rectange} ${rectanglePerimeter}")
}

