object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a, b = sc.nextInt()
  println(calcArea(a, b) + " " + calcCircumference(a, b))

  def calcArea(a: Int, b: Int): Int = a * b
  def calcCircumference(a: Int, b: Int): Int = a * 2 + b * 2
}