object Main extends App{
    	//val s = readLine
	//val i = readLine.toInt
	//val ss = readLine.split(" ")
	val ii = readLine.split(" ").map(_.toInt) 
	val (x,y) = (ii(0),ii(1))
    println(s"${x * y} ${x * 2 + y * 2}")

}