object Main extends App{
	val input =io.StdIn.readLine split " "
	val area = input(0).toInt * input(1).toInt
	val circumference = input(0).toInt*2 + input(1).toInt*2
	println( area + " " +circumference )
}