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

process.stdin.on('data',function(chunk){
    const line  = chunk.split(' ').map(Number);
    const solve = function([x,y]){ return [x*y, (x+y)*2]};
    console.log(solve(line).join(' '));
});