process.stdin.resume();
process.stdin.setEncoding('utf-8');
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 = 2*(b+c);
    console.log(menseki+' '+nagasa);
});