object Main extends App {
	val strAry = io.StdIn.readLine().split(' ')
	
	val num1 = strAry(0).toInt
	val num2 = strAry(1).toInt
	
	// 面積
	val area = num1 * num2
	
	// 周の長さ
	val l = num1 * 2 + num2 * 2
	
	println(area + " " + l)
}
