import scala.io.StdIn.readLine

object Main extends App {
  val num = readLine.split(" ").map(_.toInt)
  val (x, y) = (num(0), num(1))
  val area = x * y
  val perimeter = (x + y) * 2

  println(s"$area $perimeter")
}

