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

process.stdin.on('data', function (chunk) {
    let lines = chunk.toString().split(' ');
    
    let arr= lines.map(n => parseInt(n));
    let v = parseInt(lines[0]);
    let h = parseInt(lines[1]);
    console.log(`${v * h} ${2 * (v + h)}`);
});
