process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk)
{
	var input = parseInt(chunk.trim(), 10);
	var kazu = input.split(' ');
	var men = kazu[0] * kazu[1];
	var syu = kazu [0] * 2 + kazu[1] * 2;
	console.log(men+" "+syu);
});