process.stdin.on('data', function (chunk) {
    const hightAndWidth = parseInt(chunk.split(" "));
    let area = hightAndWidth[0] * hightAndWidth[1];
    let length = hightAndWidth[0]*2 + hightAndWidth[1]*2;
    console.log(area + ' ' + length);
})