import scala.io.StdIn

object Main {
  def main(args:Array[String]) {
    val inputs = StdIn.readLine().split(" ")
    val a = inputs(0).toInt
    val b = inputs(1).toInt
    println((a * b) + " " + (2 * a + 2 * b))
  }
}