object Main {
  def main(args: Array[String]): Unit = {
    val intArray = io.StdIn.readLine().split(" ").map(_.toInt)
    val a = intArray(0)
    val b = intArray(1)
    println(a*b + " " + 2*(a+b))
  }
}