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

