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

  val Input = readLine.split(" ").map(_.toInt)
  val a:Int = Input(0)
  val b:Int = Input(1)
   
  val s = a * b
  val l = (a*2) + (b*2)
   
  println(s + " " + l )
  
  }
}