import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]): Unit = {
    val Array(len, width) = readLine.split(" ").map { s => s.toInt }
    val area = len * width
    val perimeter = len * 2 + width * 2
    println(area + " " + perimeter)
  }
}