process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {

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

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