import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    val input = readLine().split(" ").map(_.toInt)
    val (w, h) = (input(0), input(1))
    println(w * h + " " + (w + h) * 2)
  }
}