import java.util.Scanner

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    val length1 = scan.nextInt()
    val length2 = scan.nextInt()
    val area = length1*length2
    val perim = 2*(length1+length2)
    println("${area} ${perim}")
}
