import scala.io.StdIn

/**
  * Created by yusaku on 2017/02/15.
  */

object Main {
  def main(args: Array[String]): Unit = {
    val ab = StdIn.readLine().split(" ").map(_.toInt)
    println(s"${ab.product} ${ab.sum * 2}")
  }
}