import scala.io.StdIn

object Main extends App {
    val parms = StdIn.readLine().split(" ").iterator
    val a = parms.next.toInt
    val b = parms.next.toInt
    printf("%d %d\n", a * b, 2 * (a + b))
}

