
object Main {
  def main(args: Array[String]): Unit = {
    val Seq(args1, args2) : Seq[Int] = readLine split " " map(_.toInt)
    val area =  args1 * args2
    val length = args1 * 2 + args2 * 2 
    println (area + " " + length) 
  }
}