let main = (standardInput) => {
    let varticalLength = standardInput.split(' ')[0];
    let horizonLength = standardInput.split(' ')[1];

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

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

