/**
  * Created by ??\??? on 2016/12/7.
  */
object Main{
    def main(args: Array[String]): Unit = {
        val T = Console.readLine();
        val lines = T.split(" ")
        val a = lines(0).toInt
        val b = lines(1).toInt
        val c = a*b
        val d = (a+b)*2
        println(c+" "+d)
    }
}