import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    val list = readLine.split(" ").map(_.toInt)
    val s = list(0) * list (1)
    val l = 2*list(0)+2*list(1)
    println(s"$s $l")
  }
}