process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data',function (chunk){

var line = chunk.toString().chunk.split(' ');
var a = paeseInt(line[0],10);
var b = paeseInt(line[1],10);

var manseki = a*b;
var nagasa = 2*a+2*b;
console.log(menseki+' '+nagasa);
});