object Main {
  def main(args: Array[String]) = {
    val input: String = readLine()
    val list: Array[String] = input.split(" ")
    val a: Int = list(0).toInt
    val b: Int = list(1).toInt
    
    val area: Int = a * b
    val perimeter: Int = (a + b) * 2
    println(area + " " + perimeter)
  }  
  //def readLine(): String = {"3 5"}
}
