import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]){
    val ab = readLine().split(" ").map(_.toInt)
    val (a,b) = (ab(0),ab(1))
    val n = 2*(a+b)
    val yebi  =  a*b
    println(s"$n $yebi")
  }
}
    

