object Main {
  def main(args: Array[String]) {
    val stdLineInputAry = io.StdIn.readLine().split(" ")

    val tate = stdLineInputAry(0).toInt
    val yoko = stdLineInputAry(1).toInt
    val menseki = tate * yoko
    val syuu = (tate * 2) + (yoko * 2)
    println(menseki + " " + syuu)
  }
}