object Main {
????def main(args: Array[String]): Unit = {
????????val scan = new java.util.Scanner(System.in)

????????val a = scan.nextInt
????????val b = scan.nextInt

    val area = a * b
    val length = 2 * ( a + b )

????????println(area + " " + length)
????}
}