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

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

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

