var input= require("fs").readFileSync("/dev/stdin", "utf8");
var input = input.split(" ");
var tate=parseInt(input[0]);
var yoko=parseInt(input[1]);

var menseki = tate * yoko;
var syu = 2*(tate + yoko); 

console.log(menseki + " " + syu);
