object Main {
  def main(args:Array[String]) = {
	//val s = readLine
	//val i = readLine.toInt
	//val ss = readLine.toInt.split(" ")
	val ii = readLine.toInt.split(" ").map(_.toInt) 
	val (x,y) = (ii[0],ii[1])
    	println(s"${x * y} ${x * 2 + y * 2}")
  }
}