function main() {
	input = input[0].split(' ');
	
	height = input[0];
	width  = input[1];

	S = height * width;
	A = 2 * height + 2 * width;

	console.log(S + ' ' + A);
}

var input = "";

process.stdin.resume();
process.stdin.setEncoding("utf-8");
process.stdin.on("data", function(chunk) {
	input += chunk;
});

process.stdin.on("end", function() {
	input = input.split("\n");
	main();
})