var square = function(x) {return Math.pow(x, 3);}
 
process.stdin.resume();
process.stdin.setEncoding('utf8');
 
process.stdin.on('data', function(ab) {
	var result = ab.split(" ");
	var a = result[0];
	var b = result[1];
	console.log(a*b , 2*a+2*b);
});