//??????????????¨?????????
process.stdin.resume();

process.stdin.setEncoding('utf8');

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