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

process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    const chunks = chunk.split(' ');
    var hight = parseInt(chunks[0]);
    var width = parseInt(chunks[1]);
    var areaOfRectanglar = hight * width;
    var lengthOfRectanglar = (hight + width) * 2;
    console.log(areaOfRectanglar, lengthOfRectanglar);
})