process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');
    var x =lines;
var men = x[0] * x[1];
var syu = x[0]*2 + x[1]*2;
console.log(men +" "+syu);

});