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