import java.util.Scanner

fun main(args: Array<String>) {
    val reader = Scanner(System.`in`)
    
    val a = reader.nextInt()
    val b = reader.nextInt()

    println("${a * b} ${a * 2 + b * 2}")
}
