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