object Main extends App {
  import scala.io.StdIn.readLine;
  val area : (Int, Int) => Int = (a:Int, b:Int) => a * b;
  val length : (Int, Int) => Int = (a:Int, b:Int) => 2 * a + 2 * b
  val in = (readLine().split(' ').map(_.toInt));
  println(area(in(0), in(1)).toString + ' ' + length(in(0), in(1)))
}