process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
 
var line=chunk.split(' ');
var a = parseInt(line[0],10);
var b = parseInt(line[1],10);
var menseki = a*b;
var nagasa = 2*a+2*b;
console.log(menseki+' '+nagasa);

});