import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val a = scanner.nextInt()
    val b = scanner.nextInt()
    val area = a * b
    val perimeter = 2 * a + 2 * b
    println("${area} ${perimeter}")
}

