const main = (standardInput) =>{
    const length_list = standardInput.split(' ');
    const vartical_length = Number.parseInt(length_list[0]);
    const horizon_length = Number.parseInt(length_list[1]);
    
    console.log(`${vartical_length * horizon_length} ${(2*vartical_length) + (2*horizon_length)}`);
}
main(require('fs').readFileSync('/dev/stdin','UTF-8'));
