var main = function(standardInput) {
    var lenghtList = standardInput.split(' ');
    var varticalLength = parseInt(lenghtList[0]);
    var horizonLength = parseInt(lengshtList[1]);

    console.log(varticalLength * horizonLength + ' ' + 2 * (varticalLength + horizonLength));
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));

