import java.util.Scanner

object Main {
  def main (args: Array[String]) = {
    val in = new Scanner(System.in)
    val a = in.nextInt
    val b = in.nextInt

    println((a * b) + " " + ((a + b) * 2))
  }
}