object Main {
  def main(args: Array[String]): Unit = {
    val edges = io.Source.stdin.getLines().next.split(" ").map(_.toInt)
    println(s"${edges(0) * edges(1)} ${edges(0) * 2 + edges(1) * 2}")
  }
}
