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