fun main(args: Array<String>){
	//Hello_World()
	//X_Cubic()
	Rectangle()
}

fun Rectangle(){
	val xy = readLine()!!.split(" ").map(String::toInt)
	val square = xy[0]*xy[1]
	val around = xy[0]*2+xy[1]*2
	println("${square} ${around}")
}
