import scala.io.StdIn.readLine
object Main {
    def main(args: Array[String]) {
        val input = readLine().split(" ").map(_.toInt)
        rectangle(input(0), input(1))
    }
    def rectangle(a: Int, b: Int) {
                println(a * b + " " + (2 * a + 2 * b))
    }
}
