import scala.io.StdIn.readInt
object Main {
    def main(args: Array[String]) {
        val a = readInt()
        val b = readInt()
        rectangle(a, b)
    }
    def rectangle(a: Int, b: Int) {
                println(a * b + " " + (2 * a + 2 * b))
    }
}
