object Main {
    def main(args: Array[String]): Unit = {
//        val strAry = io.StdIn.readLine().split(' ')
//        println(strAry.sorted.mkString(" "))
//        val x = io.StdIn.readInt()
//        println(x * x * x)
        val in = readLine.split(" ").map(_.toInt)
        val a = in(0)
        val b = in(1)
        println(a * b + " " + 2 * (a + b))
    }
}

