const main = (standardInput) => {
    const lengthList = standardInput.split(' ');
    const a = Number.parseInt(lengthList[0]);
    const b = Number.parseInt(lengthList[1]);

    console.log(a*b,a*2+b*2);
}

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

