process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk){
	var a = chunk.trim().split(' ');
	var x = a[0] * a[1];
	var y = (a[0] + a[1]) * 2;
	console.log(x + ' ' + y);
});