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

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

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));

