object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val height = sc.nextInt
    val width = sc.nextInt

    val area = height * width
    val around = height * 2 + width * 2
    println(area+" "+around)
  }
}