/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C
  * ????????¢?????¢?????¨??¨?????????
  * ?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°?????????????????????????????????
  */
object Main {
  def main(args: Array[String]): Unit = {
    val seqPair = io.StdIn.readLine().split(" +").map(_.toInt).toSeq
    val (a, b) = seqPair match { case Seq(x, y) => (x, y) }
    val area = a * b
    val length = 2 * a + 2 * b
    println(s"$area $length")
  }
}