import scala.io.StdIn

/**
  * AOJ
  */
object Main {

  def main(args: Array[String]): Unit = {

    val in = StdIn.readLine().split(" ").map(s => s.toInt)

    println((in(0) * in(1)).toString + " " + (in(0) + in(1)) * 2)
  }
}